Skip to content

Integrations

Framework-specific guides for wiring ai-i18n-tools into documentation sites and Astro projects. Each integration uses the Documents pipeline (translate-docs / sync) for page content; shell strings (nav, sidebar, theme) are handled inside that same pipeline where noted — not via the separate JSON pipeline.

Which guide to read

Your siteInit templateStart here
Astro Starlight or plain Astroui-starlight / hybrid UI stringsAstro
Docusaurusui-docusaurusDocusaurus
VitePressui-vitepressVitePress
Nextra 4 (Next.js App Router)ui-nextraNextra
Fumadocs 4 (Next.js App Router)ui-fumadocsFumadocs

Shared concepts

All documentation-framework integrations share the same docs[] block model described in Documents. Set docsOutput.style to match your framework ("docusaurus", "vitepress", "nextra", "fumadocs", or "astro-starlight"). For output folder layout and link rewriting behaviour, see Output layouts and Link rewriting.

Each init -t ui-* template scaffolds a default LLM provider block (openrouter unless you pass -P <provider>). Before translate-docs or sync, configure provider / providers if needed and set the matching API key — see Provider and API key.

See Framework shell translation for a cross-framework comparison. Each linked guide below covers setup for that framework.

Framework shell translation

FrameworkShell / theme stringsPipeline
Docusauruswrite-translations catalog ({ message, description })Documents — docs[].docusaurusCatalogDir + translate-docs
VitePressTheme/nav/sidebar catalogDocuments — docsOutput.vitepressThemeCatalog + translate-docs
Nextra_meta.ts sidebar labelsDocuments — auto when style: "nextra" + translate-docs
NextraTheme dictionary .tsDocuments — docs[].nextraDictionaryPath + translate-docs
Fumadocsmeta.json sidebar labelsDocuments — auto when style: "fumadocs" + translate-docs
FumadocsUI overrides catalogDocuments — docsOutput.fumadocsUiCatalog + translate-docs
Astro StarlightBuilt-in UI strings (many locales); no additional shell pipelineDocuments — translate-docs (pages only)

Do not put framework shell/theme strings in json[] — that pipeline is for unrelated app locale bundles. Per-framework setup details are in the guides linked from Which guide to read.

Runnable examples

FrameworkExample repo
Astro Starlightexamples/astro-docs
Plain Astro websiteexamples/astro-website
Docusaurusexamples/docusaurus-docs
VitePressexamples/vitepress-docs
Nextraexamples/nextra-docs
Fumadocsexamples/fumadocs-docs

Released under the MIT License.