Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI fixing of failed checks #13639

Open
nijel opened this issue Jan 23, 2025 · 1 comment
Open

AI fixing of failed checks #13639

nijel opened this issue Jan 23, 2025 · 1 comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature.

Comments

@nijel
Copy link
Member

nijel commented Jan 23, 2025

Describe the problem

It might be challenging for a translator to fix syntax errors in placeable, markup or anything special that triggers Weblate checks. Some checks have a fix button which covers simple regex-based fixes, but the more complex ones are not covered.

Describe the solution you would like

Proposed by @matzeeable in #13634:

When using e.g. OpenAI gpt-4o-mini I can successfully fix the translation: https://chatgpt.com/share/67920307-bbe0-8002-a653-4a6db846c721

Image

Prompt:

You are tasked with proofreading a translation from English to Slovak. The original English text is:

\`\`\`
This template is {{strong}}%smachine translated{{/strong} into your language {{languages/}} and has not yet been checked by a human translator.
\`\`\`

The Slovak translation provided is:

\`\`\`
Táto šablóna je {{strong}}%strojovo preložená{{/strong}} do vášho jazyka {{jazyky/}} a zatiaľ nebola skontrolovaná ľudským prekladateľom.
\`\`\`

While the translation itself is accurate and should remain unchanged, the interpolation variables (enclosed in double curly brackets `{{` and `}}`) are incorrectly translated. Your task is to correct only the interpolation variables in the Slovak translation without altering any other part of the text.

Return only the fixed translation text in plain text format and nothing else.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

I think this is a great example where AI might be helpful in Weblate. Such a fixer would need to come up with a generic way to integrate AI into Weblate:

  • It should be platform-agnostic. Users might want to use local AI and not rely on third-party.
  • How do we want to configure this? Site-wide to be configured by admins makes sense for private instances.
@nijel nijel added enhancement Adding or requesting a new feature. backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. labels Jan 23, 2025
Copy link

This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.

In case you need this feature soon, please consider helping or push it by funding the development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant