.md, .markdown, .mdown, .mkdn, .mdwn, .mkd.
Source file
Save this example aslocales/en-US/messages.md.
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
- Translates prose while retaining Markdown structure and link destinations.
- Frontmatter and fenced code blocks stay unchanged. Translate frontmatter separately if you need localized metadata.
-
Segments use sequential keys such as
md.0001. Review generated files when restructuring source content. -
Set
srx: markdownon a file mapping if you need sentence segmentation. See configuration.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

