New to Claude Skills? Learn how to install them →

github on GitHub

MkDocs AI Translator

OfficialFree

Effortlessly translate MkDocs documentation into multiple languages.

by github37.7k stars on github/awesome-copilot
5 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What MkDocs AI Translator does

The MkDocs AI Translator is designed to streamline the process of translating documentation for projects using the MkDocs framework. With this skill, users can specify a target language and locale code, after which the tool takes over to translate all documentation files from the specified English source folders. The skill ensures that the original folder structure and Markdown formatting are preserved throughout the translation process, making it an ideal solution for technical writers and developers who need to maintain consistency across multiple language versions of their documentation.

Upon receiving the target language and locale code, the MkDocs AI Translator will automatically list all relevant files in the docs/docs/en and docs/docs/includes/en directories. It then proceeds to translate each file one by one, ensuring that no file is skipped or reordered. This automated approach allows for a seamless translation experience, saving time and reducing the potential for human error during manual translations.

Once the translations are complete, the skill also updates the necessary MkDocs configuration files, including locale entries and navigation translations, to ensure that the translated documentation is fully integrated into the existing MkDocs setup. This makes it particularly useful for developers and technical writers who need to quickly deploy multilingual documentation without the hassle of manual updates.

Overall, the MkDocs AI Translator is a valuable tool for any team looking to make their documentation accessible to a broader audience by providing accurate translations while maintaining the integrity of the original content.

When to use it

Use this skill when you need to translate MkDocs documentation into another language while preserving the original structure and formatting.

When not to use it

This skill is not suitable for projects that require extensive manual editing or custom formatting adjustments after translation.

What you can build with it

Translating Project Documentation

You have a software project with extensive documentation in English and need it translated into Spanish for a wider audience.

Maintaining Multilingual Support

Your team regularly updates documentation and requires consistent translations to keep all language versions up to date.

Integrating New Languages

You are launching a product in a new market and need to quickly translate existing documentation into the local language.

How to install MkDocs AI Translator

View source

1. Install with the skills CLI

npx skills add github/awesome-copilot/mkdocs-translations --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by 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:
    • es for Spanish
    • fr for French
    • pt-BR for Brazilian Portuguese
  • Mirror the exact folder and file structure from the original en directories.
  • 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.mdincludes/es/introduction-event.md
    Replace es with the actual locale code provided by the user.

MkDocs Configuration Update

  • Modify the mkdocs.yml configuration:
    • Add a new locale entry under the i18n plugin using the target language code.
    • Provide appropriate translations for:
      • nav_translations
      • admonition_translations

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.

Frequently asked questions about MkDocs AI Translator

Similar skills