.toml.
Source file
Save this example aslocales/en-US/messages.toml.
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.
.toml uploads for file
translation jobs and segment review. See Supported formats.
Behavior and limitations
-
Nested tables flatten as dotted keys, for example
home.title. String arrays use bracket indexes such ashome.items[0]. - Only string values are translated. Numbers, booleans, dates, and other non-string scalars stay in the file.
- Writeback replaces existing string literals in place and preserves comments, table headers, and quote style when the translated value still fits that style.
-
Array-of-tables (
[[name]]) and duplicate keys are rejected. New keys append as dotted assignments at the end of the file.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

