docs: clarify i18n locale visibility · openclaw/openclaw@e5c608f
vincentkoc
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,15 @@ Generated locale trees and live translation memory now live in the publish repo:
|
27 | 27 | |
28 | 28 | - Keep generated locale output out of the main product repo. |
29 | 29 | - Keep Mintlify on a single published docs tree. |
30 | | -- Preserve the built-in language switcher by letting the publish repo own generated locale trees. |
| 30 | +- Preserve the built-in language switcher for Mintlify-supported generated locales by letting the publish repo own generated locale trees. |
| 31 | +- Keep generated Thai (`th`) and Persian (`fa`) docs plus translation memory even though Mintlify does not currently accept those codes in `navigation.languages`. Their absence from the built-in docs language picker is a host limitation, not a failed translation run. |
| 32 | + |
| 33 | +## Locale visibility |
| 34 | + |
| 35 | +- Control UI supports `en`, `zh-CN`, `zh-TW`, `pt-BR`, `de`, `es`, `ja-JP`, `ko`, `fr`, `ar`, `it`, `tr`, `uk`, `id`, `pl`, `th`, `vi`, `nl`, and `fa`. |
| 36 | +- Docs translation workflows generate the same non-English locale set in `openclaw/docs`. |
| 37 | +- The Mintlify docs language picker can expose only the locales accepted by Mintlify `navigation.languages`; today that includes Vietnamese (`vi`) and Dutch (`nl`), but not Thai (`th`) or Persian (`fa`). |
| 38 | +- Do not treat missing `th` or `fa` entries in generated `docs/docs.json` as a pipeline failure. Verify their generated folders in `openclaw/docs` instead. |
31 | 39 | |
32 | 40 | ## Files in this folder |
33 | 41 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,6 +83,8 @@ The Control UI can localize itself on first load based on your browser locale. T
|
83 | 83 | - The selected locale is saved in browser storage and reused on future visits. |
84 | 84 | - Missing translation keys fall back to English. |
85 | 85 | |
| 86 | +Docs translations are generated for the same non-English locale set, but the docs site's built-in Mintlify language picker is limited to the locale codes Mintlify accepts. Thai (`th`) and Persian (`fa`) docs are still generated in the publish repo; they may not appear in that picker until Mintlify supports those codes. |
| 87 | + |
86 | 88 | ## Appearance themes |
87 | 89 | |
88 | 90 | The Appearance panel keeps the built-in Claw, Knot, and Dash themes, plus one browser-local tweakcn import slot. To import a theme, open [tweakcn themes](https://tweakcn.com/themes), choose or create a theme, click **Share**, and paste the copied theme link into Appearance. The importer also accepts `https://tweakcn.com/r/themes/<id>` registry URLs, editor URLs like `https://tweakcn.com/editor/theme?theme=amethyst-haze`, relative `/themes/<id>` paths, raw theme IDs, and default theme names such as `amethyst-haze`. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,8 @@ const GENERATED_LOCALES = [
|
116 | 116 | tmFile: "fa.tm.jsonl", |
117 | 117 | navMode: "clone-en", |
118 | 118 | // Mintlify does not currently accept `fa` in navigation.languages. |
119 | | -// Preserve generated files/translation memory, but do not publish a nav entry. |
| 119 | +// Keep generated docs and translation memory so the locale stays available |
| 120 | +// once the docs host accepts it. |
120 | 121 | navigation: false, |
121 | 122 | }, |
122 | 123 | { |
@@ -154,7 +155,8 @@ const GENERATED_LOCALES = [
|
154 | 155 | tmFile: "th.tm.jsonl", |
155 | 156 | navMode: "clone-en", |
156 | 157 | // Mintlify does not currently accept `th` in navigation.languages. |
157 | | -// Preserve generated files/translation memory, but do not publish a nav entry. |
| 158 | +// Keep generated docs and translation memory so the locale stays available |
| 159 | +// once the docs host accepts it. |
158 | 160 | navigation: false, |
159 | 161 | }, |
160 | 162 | ]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。