.json.
Source file
Save this example aslocales/en-US/messages.json.
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
-
Every top-level entry must be a message object with a string
defaultMessagefor strict catalog detection. -
descriptionsupplies translation context. Writeback updatesdefaultMessagewhile retaining catalog metadata. -
Preserve ICU arguments and plural/select syntax in messages. Review generated translations with
check. -
Use
extractto create a catalog from React Intl source. Static JS/TS catalogs are supported too.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

