|
| 1 | +# Translation status |
| 2 | + |
| 3 | +FastAPI-fastkit ships docs in several languages, but those translations |
| 4 | +are **not at parity**. This page is the single source of truth for what |
| 5 | +is actually translated where, what gets shown when a page hasn't been |
| 6 | +translated, and how to help. |
| 7 | + |
| 8 | +## Source of truth |
| 9 | + |
| 10 | +> **English (`en`) is the source of truth.** All product, CLI, and API |
| 11 | +> behaviour described in the docs is authored against the English files |
| 12 | +> first. Other locales are translations of those English sources and may |
| 13 | +> lag behind a release. |
| 14 | +> |
| 15 | +> If a translated page disagrees with the English page, **trust the |
| 16 | +> English page** until the translation is updated. |
| 17 | +
|
| 18 | +The English files live under [`docs/en/`](https://github.com/bnbong/FastAPI-fastkit/tree/main/docs/en). |
| 19 | +Every other locale (`docs/ko/`, `docs/ja/`, ...) is a translation |
| 20 | +target. |
| 21 | + |
| 22 | +## Per-locale completeness |
| 23 | + |
| 24 | +The numbers below count Markdown pages in each locale's directory tree |
| 25 | +relative to the English source. They reflect what's actually present in |
| 26 | +the repository — not what shows up in the language switcher (which the |
| 27 | +next section explains). |
| 28 | + |
| 29 | +| Locale | Status | Markdown pages | Notes | |
| 30 | +|---|---|---:|---| |
| 31 | +| 🇬🇧 English (`en`) | ✅ Source of truth | 26 / 26 | Authoritative. | |
| 32 | +| 🇰🇷 Korean (`ko`) | 🟡 Partial | 2 / 26 | `index.md`, `changelog.md`. Other pages fall back to English. | |
| 33 | +| 🇯🇵 Japanese (`ja`) | 🔴 Skeleton | 0 / 26 | Build target only. Every page falls back to English. | |
| 34 | +| 🇨🇳 Chinese (`zh`) | 🔴 Skeleton | 0 / 26 | Build target only. Every page falls back to English. | |
| 35 | +| 🇪🇸 Spanish (`es`) | 🔴 Skeleton | 0 / 26 | Build target only. Every page falls back to English. | |
| 36 | +| 🇫🇷 French (`fr`) | 🔴 Skeleton | 0 / 26 | Build target only. Every page falls back to English. | |
| 37 | +| 🇩🇪 German (`de`) | 🔴 Skeleton | 0 / 26 | Build target only. Every page falls back to English. | |
| 38 | + |
| 39 | +*Snapshot verified 2026-05-06.* These counts are maintained by hand; |
| 40 | +to recount the current state from the repo root, run: |
| 41 | + |
| 42 | +```console |
| 43 | +$ for loc in en ko ja zh es fr de; do |
| 44 | + echo "$loc: $(find docs/$loc -name '*.md' 2>/dev/null | wc -l | tr -d ' ')" |
| 45 | + done |
| 46 | +``` |
| 47 | + |
| 48 | +If the recount disagrees with the table, the table is stale — please |
| 49 | +update it (or open a PR / issue noting the drift). |
| 50 | + |
| 51 | +Legend: |
| 52 | + |
| 53 | +- ✅ **Source of truth** — the locale we author against. |
| 54 | +- 🟡 **Partial** — some pages translated; missing pages fall back. |
| 55 | +- 🔴 **Skeleton** — language switcher entry exists, but no translated |
| 56 | + pages are checked in yet. The site renders English content under the |
| 57 | + translated nav labels. |
| 58 | + |
| 59 | +## How fallback works |
| 60 | + |
| 61 | +The docs site uses |
| 62 | +[`mkdocs-static-i18n`](https://github.com/ultrabug/mkdocs-static-i18n) |
| 63 | +with `fallback_to_default: true`. This means: |
| 64 | + |
| 65 | +- For each translated locale, MkDocs only writes pages that exist in |
| 66 | + that locale's directory. |
| 67 | +- For every page **not** present in a locale, the build falls back to |
| 68 | + the English version of that page. |
| 69 | +- The site-wide language switcher always lists every configured locale |
| 70 | + regardless of how many pages each one has, because the build emits a |
| 71 | + reachable URL for each (page → fallback to English if needed). |
| 72 | + |
| 73 | +So a 🔴 Skeleton entry in the language switcher is **not** a promise |
| 74 | +that the docs are translated — only that the locale build target is |
| 75 | +configured. The behaviour is intentional (out-of-tree contributors can |
| 76 | +incrementally translate a page at a time without breaking the link |
| 77 | +graph), but it makes the language switcher look more complete than the |
| 78 | +underlying content actually is. |
| 79 | + |
| 80 | +## How to read the docs site |
| 81 | + |
| 82 | +- **Always default to English** if you want the most accurate, current |
| 83 | + information. |
| 84 | +- **Use a translated locale** only after checking this page for the |
| 85 | + locale's status. If it's 🟡 or 🔴 and you hit a topic that hasn't been |
| 86 | + translated, you're reading an English fallback under a translated nav |
| 87 | + label. |
| 88 | + |
| 89 | +## How to help |
| 90 | + |
| 91 | +If you'd like to translate a page or fix an existing translation: |
| 92 | + |
| 93 | +1. Read the [Translation Guide](../contributing/translation-guide.md) |
| 94 | + for the workflow, tooling, and style conventions. |
| 95 | +2. Translate one page at a time — partial translations are welcome and |
| 96 | + merged incrementally. |
| 97 | +3. Open a PR adding the new file(s) under `docs/<locale>/<same path>`. |
| 98 | + Keep filenames identical to the English source so MkDocs picks them |
| 99 | + up automatically. |
| 100 | +4. Update this page's table to reflect the new completeness count |
| 101 | + (use the recount snippet at the top of this page) and bump the |
| 102 | + "Snapshot verified" date so reviewers can see when it was last |
| 103 | + reconciled. |
| 104 | + |
| 105 | +Bug reports about translated pages going out of sync with the English |
| 106 | +source are welcome — please link the English page and the translated |
| 107 | +page so we can triage. |
| 108 | + |
| 109 | +## Why we ship 🔴 Skeleton locales at all |
| 110 | + |
| 111 | +Two reasons: |
| 112 | + |
| 113 | +1. **Predictable URL space.** Each locale already has its `/<locale>/` |
| 114 | + subtree reachable, so when a translated page lands the link is |
| 115 | + stable from day one — including links published in this guide. |
| 116 | +2. **Lower contributor friction.** Contributors translating a single |
| 117 | + page don't have to also wire a new locale build into MkDocs config — |
| 118 | + they just drop the file in. |
| 119 | + |
| 120 | +If a locale stays at 🔴 Skeleton with no contribution activity for an |
| 121 | +extended period, we may revisit whether to keep its build target |
| 122 | +enabled. That decision is tracked separately and is **not** something |
| 123 | +this status page silently changes. |
0 commit comments