mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
One-shot 提供商->提供者 normalization across src/i18n/messages/zh-CN.json (679 substitutions) and bin/cli/locales/zh-CN.json (54), mirroring #8024's zh-TW pass. Adds a versioned terminology glossary (scripts/i18n/glossary/zh-CN.json), a protected-names list (scripts/i18n/glossary/protected-terms.json), and a pure-function consistency check (scripts/i18n/check-glossary-consistency.mjs, npm run i18n:check-glossary) wired into CI as the i18n-glossary-zhcn job. zh-CN added to the visual-QA harness default locales. Complements the existing parity (check-ui-keys-coverage.mjs) and ICU (validate_translation.py) gates without replacing them.
26 lines
737 B
JSON
26 lines
737 B
JSON
{
|
|
"description": "Product/provider/model/protocol/header/CLI/env/identifier names that must appear verbatim (untranslated) inside any zh-CN localized string that mentions them. Distinct from untranslatable-keys.json, which excludes whole KEYS from drift checks at key-granularity; this list is consumed by scripts/i18n/check-glossary-consistency.mjs to flag a VALUE that mentions the concept but altered/translated the protected term itself.",
|
|
"terms": [
|
|
"OmniRoute",
|
|
"OAuth",
|
|
"MCP",
|
|
"A2A",
|
|
"JWT",
|
|
"SSE",
|
|
"API",
|
|
"SQLite",
|
|
"GitHub",
|
|
"DATA_DIR",
|
|
"cf_clearance",
|
|
"JSON",
|
|
"URL",
|
|
"HTTP",
|
|
"HTTPS",
|
|
"WebSocket",
|
|
"CLI",
|
|
"Docker",
|
|
"Electron",
|
|
"Playwright"
|
|
]
|
|
}
|