Localization
Publish your docs site in more than one language. Readers get every page, the navigation and the site's own buttons and labels in their language, and search and the AI chat answer in it too. Localization is on the Growth plan and above.
How it works
- Add a language
Open Docs settings in API Studio and choose Languages. Pick one from Add a language and save. It starts as a draft, which you can edit and preview while readers can't open it.
- Translate
Translate by hand in the studio, with AI on your AI credits, or through files in your repository.
- Publish the translations
Translations publish on their own, language by language. Set the language to Live when it's ready for readers.
- Readers pick their language
A language menu appears on your site. Every page keeps its address under a language prefix, so
/create-userin French is/fr/create-user.
A site with one language looks and works exactly as it did. Nothing on it changes until you add a second language.
Languages and your plan
The language you write in is the source language. Your plan counts the languages you add on top of it, drafts and live alike.
| Plan | Languages on top of the source |
|---|---|
| Free and Starter | None |
| Growth | 3 |
| Business | 10 |
| Enterprise | No limit |
The Languages panel shows how many you've used, as in 2 of 3 on your plan. At the limit, Add a language is turned off until you remove one or upgrade.
You can choose from more than 40 languages, listed by their own names, such as Français and 日本語.
The language you write in
Every plan sets the source language, including Free and Starter: it's one language, not a translation. You pick it when you create a project (Docs language, under the project name), and you can change it later under Docs settings > Languages > Source language. If you skip it, it's English.
It decides:
- The language of your site's own buttons and labels, such as On this page and the search box, and the language search engines are told the site is in.
- The language AI-written pages are written in, and the language the AI chat answers in.
- The language translations are made from.
Changing it doesn't rewrite pages that already exist. New AI-written pages use the new language; to rewrite an existing page, generate it again in API Studio. To change it once you've added other languages, remove those first, so one language never has two sources.
Language settings
Each language has its own row in the panel, with a status and its options.
Statuschoice| Studio label | Meaning |
|---|---|
| Draft | Editable and previewable, not public |
| Live | Readers can open it |
Translate automaticallychoice| Studio label | Meaning |
|---|---|
| Off | The AI only runs when you start it |
| Translate into drafts | When you publish the source, the AI translates what changed and leaves it as drafts for review |
| Translate and publish | The same, published straight away and marked not reviewed |
Automatic runs spend AI credits like any other run.
TonechoiceDefault, Formal or Informal: how the AI addresses the reader, for languages that make the difference, such as vous and tu in French.
Instructions for the AI translatortextFree text the AI follows for this language, such as "keep product names in English".
Two settings apply to every language:
Reader's browser languagechoice| Studio label | Meaning |
|---|---|
| Suggest a language | Readers see a banner offering their language. Nothing redirects. |
| Redirect the home page | Visitors to the home page go to their language. |
| Redirect every page | Any page opens in the reader's language when it exists. |
| Off | Readers pick a language from the switcher. |
The banner reads "This page is available in Français" with a Read in Français button. Once a reader picks a language from the menu, the site remembers it and stops redirecting or suggesting. Redirect every page doesn't apply to password-protected docs.
With Redirect every page, the same address can send one reader to their language and show another the source page, depending on their browser language. Octri works this out on every visit. If you put your own CDN or caching proxy in front of a custom domain and let it cache pages, it can store the source page and show it to everyone, so readers are no longer redirected. Either don't cache your docs pages at your CDN, or use Suggest a language or Redirect the home page and don't cache the home page.
Pages not translated yetchoice| Studio label | Meaning |
|---|---|
| Show the source page | The page opens in the source language, with a notice that it isn't available in the reader's language yet |
| Hide the page | It leaves that language's sidebar, and its address goes to the source page |
With Show the source page, search engines are pointed at the source page, so an untranslated copy never competes with it.
The glossary
Under Glossary in the same panel, list the terms the AI must translate the same way every time, with a translation per language, or tick Keep as written for terms that stay as they are, such as your product name. Code, URLs and component names are never translated, so they don't need an entry.
Translating in the studio
The studio always edits your source language. Once a language is added, Edit languages appears in the studio's top bar. It opens the translation editor on the page you have selected, with a page picker and a language picker at the top, so you can move through pages and languages without closing it. Each page in the picker shows how far its translation has got. Translate all pages runs the AI over every page that's missing or out of date in the chosen language, after showing what it will cost.
The editor shows the source on the left and the translation on the right, block by block. Each block shows its state:
| State | Meaning |
|---|---|
| Not translated | No translation yet |
| Source changed | The source was edited after this was translated. Show the changes shows what changed. |
| AI, not reviewed | The AI wrote it and no one has checked it |
| Edited by a person | Someone wrote or changed it by hand |
| Reviewed | Checked and current |
Click a block to edit it. Translate on a block, or Translate page at the top, runs the AI. Mark reviewed and Mark all reviewed clear the AI flag. Alt+↓ and Alt+↑ jump to the next and previous changed block. Endpoint pages show their descriptions grouped the way the page shows them: parameters, request body, responses and errors.
Text a person wrote is never replaced by the AI. When its source changes, it's marked Source changed and waits for someone to update it.
A page's translation follows the source block by block. Detach turns it into free text you can restructure, for example to add a section only one language needs. Re-align ties it back to the source.
Navigation, SEO and the other settings panels show a translation field per language under each label. Navigation rows also have Hide in this language, for a page only some languages should list.
Preview shows the page in that language, and Publish Français (with the language's name) publishes that page's translation. Translations also appear in the studio's Publish dialog, grouped by language. Publishing the source never publishes its translations, and publishing a translation never needs the source published again.
The coverage grid
Coverage, beside Edit languages, opens the Translations page: every page down the side and every language across the top. Each cell shows the share translated, and how many blocks changed in the source or aren't reviewed yet. Click a cell to edit that page in that language.
Filter by kind and by status, such as Not fully translated or Changed in the source, or find a page by name. To work in bulk, pick a language and choose Translate selected, Translate all missing or Publish Français.
AI translation and credits
AI translation costs 1 credit per 500 source words, per language, rounded up. A 1,000-word page costs 2 credits for each language.
Before any run, the studio shows what it will cost: how many passages, how many words go to the AI, how many are reused from earlier translations, and the total in credits. Nothing is spent until you choose Translate for 12 credits (with the run's own number). A few things keep the cost down:
- Only text that's missing or whose source changed is sent. A finished translation isn't translated again.
- Text already translated elsewhere in the project is reused at no cost.
- Text that's only a URL or code is copied as it is, at no cost.
- A passage the AI can't translate safely, for example one that would break a link or a code block, is left for you and not charged.
A run keeps going if you close the studio. If your credits run out, it pauses, the studio says why, and it picks up again once credits are added. See AI credits for your allowance and top-ups.
Files and GitHub
Translations are files too, in the same layout Mintlify uses, so a translation service such as Crowdin or Lokalise can work on them directly:
| File | What it holds |
|---|---|
fr/ | One translated page |
fr/ | Navigation labels, site text and component text for French, as flat key and text pairs |
i18n/ | The glossary |
Each language appears as its own group in the Files panel, with its strings.json and a file per published page, and the glossary sits in its own group. In strings.json, keys follow the source and an empty value means untranslated.
To export a language, open its strings.json or a page in the Files panel and copy it out for your translators. To import, paste the translated text back and save, which writes drafts. Or keep the files in the repository GitHub sync reads: a push or a Pull that changes fr/strings.json or a page under fr/ updates the French drafts, and the import report lists what landed, what was held and any keys it didn't recognise. Imported text counts as written by a person, so the AI never overwrites it. A file for a page that isn't published yet is held and lands when the page is published.
octri.json carries a languages block with the same settings as the panel. Endpoint translations aren't files, because endpoints come from your spec: translate them in the studio or with the CLI.
From the command line
Two commands in the Octri CLI do the same from a terminal or a CI job:
octri docs translate --locale fr --missing
octri docs translations status --locale froctri docs translate prints the credit estimate and asks before spending. --stale covers changed text and --all the whole language, --publish publishes as it goes, and --yes skips the question. octri docs translations status prints each language's share translated, changed and reviewed.
Right to left
Arabic, Hebrew, Persian and Urdu get a right-to-left layout: the sidebar moves to the right, the table of contents to the left, and arrows and chevrons flip. Code, URLs, HTTP methods and paths stay left to right inside the text. Each writing system gets a font that has its letters, including Chinese, Japanese, Korean, Arabic, Hebrew, Devanagari and Thai.
Your own custom CSS isn't flipped for right-to-left languages. If it sets left or right positions, it may need right-to-left rules of its own. The Languages panel reminds you when you add one.
Removing a language
Remove a language from its row in the panel. The dialog tells you how many pages have translations in it. When you save, readers lose the language and its addresses redirect to the source pages.
The translations are kept for 30 days. The language is listed under Removed with the date, and Restore brings it back with everything it had. After 30 days the translations are deleted, and adding the language again starts with none. Restoring a language counts toward your plan like adding one.
Changing plan
On a plan below Growth, your translations are kept but not served. Language addresses go to the source page, the language menu disappears and automatic translation stops. You can still read the translations, remove a language or set it back to draft. Upgrade again and everything comes back as it was.
Moving to a plan with fewer languages than you have live, for example from Business to Growth, keeps them all. The Languages panel asks you to Choose which languages stay live, up to your new limit. Until you choose, readers get the first ones in the panel's order. The others become drafts and are read-only until you upgrade or remove a language. Nothing is deleted.
Who can translate
Every API Studio member can see the Languages panel. Changing its settings needs edit access to API Studio. Under the organisation's members, the Docs translations permission sets who can view, edit or publish translations, and Set up as a translator gives someone access to translations without letting them change the source.
Search, chat and SEO
- Search on a language's pages finds translated text, and untranslated pages in the source language.
- The AI chat answers in the reader's language and links to translated pages where there are some. Its credit cost doesn't change.
- Each translated page links its other languages for search engines, the sitemap lists every language, and each language has its own
llms.txt, such as/fr/llms.txt. See SEO. - Older versions keep their translations, and analytics can be broken down by language.