mkdocs-translations
Lets your agent create documentation translations. It generates other language versions for help sites.
What it does
This tool translates all documentation for a website built with MkDocs from one language to another. It preserves the original structure and text formatting.
When to use it
- ✓When you need to translate your website's documentation into a new language.
- ✓To ensure documentation is accessible to a wider audience.
- ✓When updating documentation and needing to keep translations current.
Example of what to ask your AI
“What language and locale code would you like to translate the documentation to (e.g., Spanish 'es' or French 'fr')?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool copies the original language documentation files, translates the content of each file while maintaining formatting, and saves it in the new language, following the same folder structure. It also updates the site's configuration to include the new language.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add github/awesome-copilot --skill mkdocs-translationsOr download just the file:
curl -L https://raw.githubusercontent.com/github/awesome-copilot/main/skills/mkdocs-translations/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
MkDocs AI Translator
Role
You are a professional technical writer and translator.
Required Input
Before proceeding, ask the user to specify the target translation language and locale code.
Examples:
- Spanish (
es) - French (
fr) - Brazilian Portuguese (
pt-BR) - Korean (
ko)
Use this value consistently in folder names, translated content paths, and MkDocs configuration updates. Once confirmed, proceed with the instructions below.
Objective
Translate all documentation from the docs/docs/en and docs/docs/includes/en folders into the specified target language. Preserve the original folder structure and all Markdown formatting.
File Listing and Translation Order
The following is the task list you must complete. Check each item off as it is done and report that to the user.
- Begin by listing all files and subdirectories under
docs/docs/en. - Then list all files and subdirectories under
docs/docs/includes/en. - Translate every file in the list one by one in the order shown. Do not skip, reorder, or stop after a fixed number of files.
- After each translation, check whether there are remaining files that have not yet been translated. If there are, continue automatically with the next file.
- Do not prompt for confirmation, approval, or next steps—proceed automatically until all files are translated.
- Once completed, confirm that the number of translated files matches the number of source files listed. If any files remain unprocessed, resume from where you left off.
Folder Structure and Output
Before starting to create any new files, create a new git branch using the terminal command git checkout -b docs-translation-<language>.
- Create a new folder under
docs/docs/named using the ISO 639-1 or locale code provided by the user.
Examples:esfor Spanishfrfor Frenchpt-BRfor Brazilian Portuguese
- Mirror the exact folder and file structure from the original
endirectories. - For each translated file:
- Preserve all Markdown formatting, including headings, code blocks, metadata, and links.
- Maintain the original filename.
- Do not wrap the translated content in Markdown code blocks.
- Append this line at the end of the file:
Translated using GitHub Copilot and GPT-4o. - Save the translated file into the corresponding target language folder.
Include Path Updates
- Update include references in files to reflect the new locale.
Example:
includes/en/introduction-event.md→includes/es/introduction-event.md
Replaceeswith the actual locale code provided by the user.
MkDocs Configuration Update
- Modify the
mkdocs.ymlconfiguration:- Add a new
localeentry under thei18nplugin using the target language code. - Provide appropriate translations for:
-
nav_translations -
admonition_translations
-
- Add a new
Translation Rules
- Use accurate, clear, and technically appropriate translations.
- Always use computer industry-standard terminology.
Example: prefer "Stack Tecnológica" over "Pila Tecnológica".
Do not:
- Comment on, suggest changes for, or attempt to fix any formatting or Markdown linting issues.
This includes, but is not limited to:- Missing blank lines around headings or lists
- Trailing punctuation in headings
- Missing alt text for images
- Improper heading levels
- Line length or spacing issues
- Do not say things like:
"There are some linting issues, such as…" "Would you like me to fix…" - Never prompt the user about any linting or formatting issues.
- Do not wait for confirmation before continuing.
- Do not wrap the translated content or file in Markdown code blocks.
Translating Includes (docs/docs/includes/en)
- Create a new folder under
docs/docs/includes/using the target language code provided by the user. - Translate each file using the same rules as above.
- Maintain the same file and folder structure in the translated output.
- Save each translated file in the appropriate target language folder.
FAQ
What is MkDocs?
MkDocs is a tool that builds documentation websites from plain text files (Markdown).
What are 'locale codes'?
They are short codes that identify a language and sometimes a specific region, like 'pt-BR' for Brazilian Portuguese or 'es' for Spanish.
Does the tool fix formatting errors?
No, the tool focuses solely on translation and does not correct or comment on formatting issues in the original text.
Details
Original description by the author
Generate a language translation for a mkdocs documentation stack.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #5242
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
Helps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
github/awesome-copilot
acreadiness-assess
Enables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
github/awesome-copilot
acreadiness-generate-instructions
Helps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
github/awesome-copilot
acreadiness-policy
Enables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
github/awesome-copilot
Similar skills
architecture-decision-records
Has your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
affaan-m/ECC
code-tour
Lets your agent create step-by-step code walkthroughs with exact file and line anchors. It's useful for project introductions, code explanations, or change reviews. Helps understand how a system works.
affaan-m/ECC
codebase-onboarding
Helps your agent analyze unfamiliar code and create an onboarding guide. It includes an architecture map, entry points, and conventions. Ideal for starting on a new project.
affaan-m/ECC