.xcstrings.
Source file
Save this example aslocales/en-US/messages.xcstrings.
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
- Reads source text from the source-language localization. Simple entries without one fall back to the catalog key.
-
Plural, device, and substitution variants use stable
::paths. Variants require a source localization. -
Writes translations under
localizations[targetLocale], preserving catalog metadata and other localizations. JSON whitespace and ordering are normalized. - The example writes a separate catalog per target locale. The catalog format itself can contain multiple locales.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

