Skip to main content
Supported extensions: .md, .markdown, .mdown, .mkdn, .mdwn, .mkd.

Source file

Save this example as locales/en-US/messages.md.

Configure your files

Use this i18n.yml for the example, or add its file mapping to your existing bucket. See path templates for other layouts.

Translate

Install the CLI and set OPENAI_API_KEY in your project’s .env.local or shell. You can also configure another AI provider.
The dry run previews the work. The second command writes translations to the configured target path and updates the lockfile.

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: markdown on a file mapping if you need sentence segmentation. See configuration.

Next steps