.po with populated msgstr values. Direct .pot translation is not supported.
Supported extensions: .po.
Source file
Save this example aslocales/en-US/messages.po.
Configure your files
Use thisi18n.yml for the example, or add its file mapping to your existing bucket.
See path templates for other layouts.
Translate
Install the CLI and setOPENAI_API_KEY in your
project’s .env.local or shell. You can also configure another
AI provider.
Behavior and limitations
-
Uses
msgidas the entry key andmsgstras its value; multiline quoted continuations are supported. -
Use a source-language PO with populated
msgstrvalues for generation, as shown here..potis not a registered translation file extension. -
The header entry is skipped. Context (
msgctxt) does not distinguish keys, so avoid duplicate IDs distinguished only by context. -
Plural handling maps only
msgstr[0]; this is not full locale-specific plural generation. Writeback preserves PO structure and replaces mapped values.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

