.yaml, .yml.
Source file
Save this example aslocales/en-US/messages.yaml.
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
- The root must be a mapping. Nested mappings use dotted keys; sequences use indexed paths.
- Quote values that YAML could interpret as numbers, booleans, nulls, or timestamps. Non-string leaves, anchors, and aliases are rejected.
-
Mapping keys cannot contain
.,[or], which are reserved for flattened paths. - Writeback preserves key order and comments where possible. Formatting and scalar styles may be normalized.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

