fix(i18n): 补齐九语翻译并修复国际化检查
补齐历史缺译并统一整句插值。九语覆盖 100%,静态检查及 713 项单测通过。
This commit is contained in:
+3
-6
@@ -55,12 +55,9 @@ i18n.use(initReactI18next).init({
|
||||
// Natural-language keys may contain dots and colons, so keep all keys flat.
|
||||
keySeparator: false,
|
||||
nsSeparator: false,
|
||||
// The locale files carry hundreds of ""-valued keys written by
|
||||
// i18next-cli sync as translation TODOs. i18next treats "" as a valid
|
||||
// translation by default, which renders those strings as BLANK; treating
|
||||
// them as missing falls back to the key itself (the readable Chinese
|
||||
// source text) instead.
|
||||
// 注:locales/{fr,ru}.json 未登记进 catalog.js(译文覆盖率不足),当前不会被加载。
|
||||
// Treat future empty translation TODOs as missing, so the readable source
|
||||
// text is displayed instead of a blank label.
|
||||
// fr/ru 已补齐,但尚未登记进 catalog.js;开放语言需另行验收。
|
||||
returnEmptyString: false,
|
||||
interpolation: { escapeValue: false },
|
||||
// 语种按需加载:bundle 由 addResourceBundle 异步落库,只有订阅 store 的
|
||||
|
||||
Reference in New Issue
Block a user