Aller au contenu
Skillpedia
Documentation40k · #7299

mkdocs-translations

Ce qu’il fait

Cet outil traduit toute la documentation d’un site web créé avec MkDocs d’une langue vers une autre. Il conserve la structure d’origine et la mise en forme du texte.

Quand l’utiliser

  • ✓Lorsque vous devez traduire la documentation de votre site web dans une nouvelle langue.
  • ✓Pour que la documentation soit accessible à un public plus large.
  • ✓Lorsque vous mettez à jour la documentation et devez garder les traductions à jour.

Lien du skill

https://github.com/github/awesome-copilot/blob/main/skills/mkdocs-translations/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/mkdocs-translations/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Dans quelle langue et avec quel code de locale souhaitez-vous traduire la documentation (par exemple espagnol « es » ou français « fr ») ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L’outil copie les fichiers de documentation dans la langue d’origine, traduit le contenu de chaque fichier en conservant la mise en forme, puis l’enregistre dans la nouvelle langue en reprenant la même arborescence de dossiers. Il met aussi à jour la configuration du site pour y ajouter la nouvelle langue.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.md → includes/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.
Questions fréquentes

Qu’est-ce que MkDocs ?

MkDocs est un outil qui crée des sites de documentation à partir de fichiers texte simples (Markdown).

Qu’appelle-t-on « codes de locale » ?

Ce sont de courts codes qui identifient une langue et parfois une région précise, comme « pt-BR » pour le portugais du Brésil ou « es » pour l’espagnol.

L’outil corrige-t-il les erreurs de mise en forme ?

Non, l’outil se concentre uniquement sur la traduction et ne corrige ni ne commente les problèmes de mise en forme du texte d’origine.

Détails

Description originale de l’auteur

Generate a language translation for a mkdocs documentation stack.

repo: github/awesome-copilot

Popularité

Étoiles GitHub
40k
Position au classement
#7299
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires