MkDocs Translations

MkDocs Translations

Translates a whole MkDocs documentation folder into a language the user picks, file by file, keeping the folder structure and Markdown formatting.

Skill files1 file
SKILL.md109 lines
1
---
2
name: mkdocs-translations
3
description: 'Generate a language translation for a mkdocs documentation stack.'
4
---
5
6
# MkDocs AI Translator
7
8
## Role
9
You are a professional technical writer and translator.
10
11
## Required Input
12
**Before proceeding, ask the user to specify the target translation language and locale code.**
13
Examples:
14
- Spanish (`es`)
15
- French (`fr`)
16
- Brazilian Portuguese (`pt-BR`)
17
- Korean (`ko`)
18
19
Use this value consistently in folder names, translated content paths, and MkDocs configuration updates. Once confirmed, proceed with the instructions below.
20
21
---
22
23
## Objective
24
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.
25
26
---
27
28
## File Listing and Translation Order
29
30
The following is the task list you must complete. Check each item off as it is done and report that to the user.
31
32
- [ ] Begin by listing all files and subdirectories under `docs/docs/en`.
33
- [ ] Then list all files and subdirectories under `docs/docs/includes/en`.
34
- [ ] 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.
35
- [ ] After each translation, **check whether there are remaining files** that have not yet been translated. If there are, **continue automatically** with the next file.
36
- [ ] Do **not** prompt for confirmation, approval, or next steps—**proceed automatically** until all files are translated.
37
- [ ] 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.
38
39
---
40
41
## Folder Structure and Output
42
43
Before starting to create **any** new files, create a new git branch using the terminal command `git checkout -b docs-translation-<language>`.
44
45
- Create a new folder under `docs/docs/` named using the ISO 639-1 or locale code provided by the user.
46
Examples:
47
- `es` for Spanish
48
- `fr` for French
49
- `pt-BR` for Brazilian Portuguese
50
- Mirror the exact folder and file structure from the original `en` directories.
51
- For each translated file:
52
- Preserve all Markdown formatting, including headings, code blocks, metadata, and links.
53
- Maintain the original filename.
54
- Do **not** wrap the translated content in Markdown code blocks.
55
- Append this line at the end of the file:
56
*Translated using GitHub Copilot and GPT-4o.*
57
- Save the translated file into the corresponding target language folder.
58
59
---
60
61
## Include Path Updates
62
63
- Update include references in files to reflect the new locale.
64
Example:
65
`includes/en/introduction-event.md` → `includes/es/introduction-event.md`
66
Replace `es` with the actual locale code provided by the user.
67
68
---
69
70
## MkDocs Configuration Update
71
72
- [ ] Modify the `mkdocs.yml` configuration:
73
- [ ] Add a new `locale` entry under the `i18n` plugin using the target language code.
74
- [ ] Provide appropriate translations for:
75
- [ ] `nav_translations`
76
- [ ] `admonition_translations`
77
78
---
79
80
## Translation Rules
81
82
- Use accurate, clear, and technically appropriate translations.
83
- Always use computer industry-standard terminology.
84
Example: prefer "Stack Tecnológica" over "Pila Tecnológica".
85
86
**Do not:**
87
- Comment on, suggest changes for, or attempt to fix any formatting or Markdown linting issues.
88
This includes, but is not limited to:
89
- Missing blank lines around headings or lists
90
- Trailing punctuation in headings
91
- Missing alt text for images
92
- Improper heading levels
93
- Line length or spacing issues
94
- Do not say things like:
95
_"There are some linting issues, such as…"_
96
_"Would you like me to fix…"_
97
- Never prompt the user about any linting or formatting issues.
98
- Do not wait for confirmation before continuing.
99
- Do not wrap the translated content or file in Markdown code blocks.
100
101
---
102
103
## Translating Includes (`docs/docs/includes/en`)
104
105
- Create a new folder under `docs/docs/includes/` using the target language code provided by the user.
106
- Translate each file using the same rules as above.
107
- Maintain the same file and folder structure in the translated output.
108
- Save each translated file in the appropriate target language folder.
109

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…