In this article we describe how you can integrate your preferred LLM (large language model) in your localization workflow. Follow the steps below to set up your model for AI translation in your POEditor localization projects.
How to set up an LLM for AI translation
To get started, go to Integrations and choose your preferred provider.
Enter the API key for your account with the chosen provider and confirm that you understand that this is an experimental module to continue.
Select your preferred model and Save your settings. You can also set this integration as default for AI translation at your account level. You'll be able to later change this in your account or organization settings.
How to customize your AI translation prompts
The default prompts for the AI integrations are optimized for performance, while maintaining cost efficiency.
We highly encourage you to customize your prompts to best suit your needs.
Use the Add custom prompts option to do that.
You can add as many custom prompts as you like, overwriting the existing ones or creating new ones.
The placeholders you can use inside your prompts are:
- {source_language} - Source Language
- {source_translation} - Source Translation
- {target_translation} - Target Translation
- {target_language} - Target Language
- {form} - Plural Form
Custom prompts can be used only when translating strings individually with AI. Prompts for bulk translating with AI cannot be customized.
How to use AI translation
To use the AI translation option in a localization project for individual strings, go to any language and click in an empty translation box.
After an initial AI translation is generated, you can request that the AI rewrite the translation according to your needs.
If you want to get AI translations for multiple strings at once, use the AI option at the top of the language page.
You can give the LLM more details about what it's translating for better accuracy and save these details on the project, to use them later.
In Advanced Settings you can specify the group of strings you want translated, filtering them by tag. Only the strings without translations from the selection will be translated.