mkdocs-translations
Что он делает
Этот инструмент переводит всю документацию для сайта, созданного с помощью MkDocs, с одного языка на другой. Он сохраняет исходную структуру и форматирование текста.
Когда использовать
- ✓Когда нужно перевести документацию вашего сайта на новый язык.
- ✓Чтобы документация была доступна более широкой аудитории.
- ✓Когда вы обновляете документацию и нужно поддерживать переводы в актуальном состоянии.
Ссылка на скилл
https://github.com/github/awesome-copilot/blob/main/skills/mkdocs-translations/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“На какой язык и с каким кодом локали вы хотите перевести документацию (например, испанский «es» или французский «fr»)?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент копирует файлы документации на исходном языке, переводит содержимое каждого файла с сохранением форматирования и записывает результат на новом языке, повторяя ту же структуру папок. Также он обновляет конфигурацию сайта, добавляя новый язык.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Что такое MkDocs?
MkDocs это инструмент, который создает сайты документации из простых текстовых файлов (Markdown).
Что такое «коды локалей»?
Это короткие коды, которые обозначают язык и иногда конкретный регион, например «pt-BR» для бразильского португальского или «es» для испанского.
Исправляет ли инструмент ошибки форматирования?
Нет, инструмент занимается только переводом и не исправляет и не комментирует проблемы с форматированием исходного текста.
Подробности
Оригинальное описание автора
Generate a language translation for a mkdocs documentation stack.
repo: github/awesome-copilot
Популярность
- Звёзды на GitHub
- 40k
- Место в рейтинге
- #7299
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
acquire-codebase-knowledge
40kПомогает агенту понять и задокументировать существующий проект.
acreadiness-assess
40kАгент оценивает готовность проекта к работе с ИИ и составляет отчёт.
acreadiness-generate-instructions
40kПомогает агенту создать инструкции для ИИ-инструментов по итогам оценки.
acreadiness-policy
40kАгент помогает задавать политики оценки ИИ-готовности проектов.
Похожие скиллы
technical-documentation
394kПомогает агенту писать и проверять понятную техническую документацию и инструкции для агентов, чтобы людям и ИИ-инструментам было легко по ним работать.
architecture-decision-records
280kАгент записывает важные решения о структуре проекта. Помогает понимать причины выбора и вести ясную историю изменений.
code-tour
280kАгент создаёт пошаговые экскурсии по коду с точными ссылками на файлы и строки. Полезен для знакомства, объяснений и ревью.