.jsonc.
Source file
Save this example aslocales/en-US/messages.jsonc.
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
- Accepts line comments, block comments, and trailing commas. Message extraction follows the JSON rules.
- Translation leaves must be strings, including values inside nested objects and arrays.
- Writeback uses the JSON output path. Do not rely on comments, trailing commas, or original formatting being preserved.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

