# How do I translate a Mintlify docs site?

49.2 s · Narrator: Frederick Surrey

Connect the GitHub repository that holds your Mintlify docs to General Translation, choose your languages, and Locadex opens a pull request that restructures docs.json for multiple languages and adds the translated pages.

| Time | Voice | Line | On screen |
| --- | --- | --- | --- |
| 0:00.88 | Narrator | In Hamburg, your Mintlify docs open in English, and the site offers no German. | A browser draws in the middle of the frame, its tab and address drawn as bars. On "Mintlify" a docs page rises in it: the site's name, "Acme", with no language menu; a sidebar with the group "Get started", a page drawn as a bar and the page "Quickstart"; the page's title, "Quickstart", and its copy as bars. On "English" the title turns blue, and the heading "The site offers no German" rises on "the". |
| 0:06.32 | Narrator | The navigation in docs.json lists one set of English pages and no languages. | On "The" the browser slides to the right. On "docs" a panel opens with `docs.json` at its navigation: `"groups"` holds one group, `"group": "Get started"`, with `"pages": ["index", "quickstart"]`. On "lists" the blue moves from the title to the `"pages"` line, and on "English" a line joins that line to the group "Get started" in the browser's sidebar. On "languages" a white box draws around the navigation, and the line draws back as the sentence ends. |
| 0:11.88 | Narrator | General Translation lets you choose languages, and Locadex opens a translation pull request. | The answer card cuts in on "General": the answer alone rises as it is spoken, in two lines, "General Translation lets you choose languages," then "and Locadex opens a translation pull request", and the General Translation mark sits small in the lower left corner. |
| 0:18.62 | Narrator | Authorize the General Translation app on GitHub, and choose your docs repository in the Dashboard. | The heading "Authorize the General Translation app". The panel opens again on the Dashboard's Integrations page: the "Connected" and "Catalog" tabs, Catalog chosen, "All Integrations", and the GitHub card, "Internationalize your repositories through automated pull requests.", with a Connect button. On "app" Connect is pressed, and an "Installed" badge rises at the card's top right. On "choose" the panel shows "Select a repository", "Choose a repository to connect to this project.", a search field and the repositories, `acme/docs` on `main` first. On "docs" a file panel opens on the right with the repository's files: `acme/docs/` with `docs.json`, `index.mdx` and `quickstart.mdx`. On "repository" a white box draws around `acme/docs`, and it is marked "Connected". |
| 0:24.36 | Narrator | Create an automation from the Generate translations and push template for Mintlify, then run its setup with your languages. | The heading "Create an automation", and the panel cuts to "Automations" and "Start with a template", with three templates and the line each one runs: "Generate code", "Generate translations and push" and "Keep locales in sync". On "translations" a white box draws around "Generate translations and push". On "Mintlify" the panel cuts to the automation's settings, Repository `acme/docs`, Target directory `.`, Framework Mintlify, Target branch `main` and Run when "A pull request changes", and a white box draws around the Framework row. On "then" Create automation is pressed. On "setup" the panel cuts to the dialog "Set up this repository?", "Locadex prepares acme/docs and opens a pull request.": the source locale English; the target locales German, Spanish and Japanese, unchecked, with "0 selected"; the switch "Hide default locale in URL paths", on, with "Source docs stay at their current paths."; and Run setup, dimmed. On "languages" German, Spanish and Japanese are checked one after another, the count reading "1 selected", "2 selected" and "3 selected", and Run setup turns white with the first; as the sentence ends Run setup is pressed. |
| 0:32.00 | Narrator | Locadex's pull request adds a navigation entry per language and the translated pages. | The panel cuts to a pull request titled "docs(locadex): set up mintlify translations", with bars for its details and description. On "Locadex's" its branch line draws, and on "pull" its changed files appear under "Files changed", each marked by a blue bar: `gt.config.json`, `docs.json`, `de/`, `es/` and `ja/`. The heading "A navigation entry per language" rises as the panel cuts to `docs.json` at its navigation, its group folded as `"groups": [...]`. On "navigation" that line becomes `"languages": [`; on "entry" `{ "language": "en", "groups": [...] },` opens; on "language" `{ "language": "de", "$ref": "./de/docs.json" },` opens, then the same for `es` and `ja`, a blue bar marking each changed line. On "pages" `gt.config.json`, `de/`, `es/` and `ja/` join the repository's files on the right. |
| 0:38.38 | Narrator | The merged site's menu switches the docs to Spanish, Japanese and German. | The browser cuts back in the middle of the frame on the same page, now with a language menu reading "English". On "menu" a white box draws around the menu. On "Spanish", "Japanese" and "German" the menu, the sidebar's group and page and the page's title change to that language: "Español", "Primeros pasos" and "Inicio rápido"; "日本語", "はじめに" and "クイックスタート"; "Deutsch", "Erste Schritte" and "Schnellstart". As the sentence ends the German title turns blue, in the place where the English title turned blue at the start. |
| 0:43.98 | No voice |  | The end card: the General Translation logo with generaltranslation.com/docs/integrations/mintlify/quickstart under it, held to the last frame while the music ends on a held chord. |

Times are where each line starts in the final, read from the film's own audio.
