.xml.
Source file
Save this example aslocales/en-US/messages.xml.
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
-
Text-only leaves use
key,id, ornameattributes as keys. Unkeyed nested leaves use dotted element paths. - Comments, attributes, and metadata elements are retained. Matching root locale attributes are updated for the target locale.
- Mixed-content values and Android, XLIFF, or plist roots are rejected by this parser. Use their dedicated formats.
- CDATA is readable, but changed values are written as escaped XML text. Whitespace inside values may change with translated text.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

