.adoc, .asciidoc, .asc.
Source file
Save this example aslocales/en-US/messages.adoc.
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 document titles, headings, paragraphs, list items, description lists, table cells, admonitions, and block titles.
- Consecutive non-blank lines form one paragraph. The translated paragraph is written as a single line.
- Comments, attribute definitions, block macros, preprocessor directives, YAML front matter, and verbatim blocks stay unchanged.
-
Inline code, links, cross references, attribute references, bare URLs, anchors, passthroughs, and issue references such as
#4580are protected as placeholders. Link labels stay translatable. -
include::directives are preserved. Included files are not resolved. Upload each file on its own. -
Segments use structural keys such as
adoc.titleandadoc.paragraph. Review generated files when you restructure source content.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

