Add Chinese (zh) locale - #46
Merged
Merged
Conversation
…vbar, and plugins - Created `download.json` for download page translations. - Created `footer.json` for footer section translations. - Created `home.json` for home page translations. - Created `models.json` for models directory translations. - Created `navbar.json` for navigation bar translations. - Created `plugins.json` for plugins section translations.
…update language options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Simplified Chinese as a fourth supported language (alongside es, en, pt), fully translated across all 9 namespaces and wired into the app's language switcher. This mirrors DashAI's main application repo, which already ships a
zhloched for consistency).Changes by file
New translations
public/locales/zh/{about,community,contribute,download,footer,home,(new) — full Simplified Chinese translation of all 480 content keys,with exact key parity against thees` source files (verified programmatically — no missing/extra keys in any namespace).{{count}},{{version}}) preserved exactly._one/_other) kept in the source files s, even though Chinese has no grammatical plural distinction (CLDR hasnoonecategory forzh) — both forms carry the same text, and the coverage check correctly only requires_otherfor this locale (268/268 vs. 270/270 for es/en/pt —2 fewer required keys, not 2 missing ones).
etc.).
Marketplace), others translated (插件/plugin, 社区/community, 数据集/d
home.json'ssho.mock.*UI-chrome strings (fake app-screenshot breadcrumbs like"Models / Tabular /","Configure","Catalog") kept in English, matching the existing convention already used for those specific keys in es/en/pt.App wiring
app/i18n.ts— added thezhimports and resources block for all 9 namespaces; added"zh"tosupportedLngs.components/community/Navbar.tsx— extended theLangtype andLANG_OPTIONSwith{ code: 'zh', label: '中文' }so it appears in the language switcher dropdown.app/page.tsx— added'zh'to the whitelist of languages restorabd.i18next.config.js— added"zh"to thelocalesarray so the translation-coverage CI check (i18next-cli status) validates it too.