Skip to content

feat(i18n): add zh-TW, pt-BR, ja, ko and es locales - #207

Open
Blankll wants to merge 3 commits into
masterfrom
feat/i18n-zhtw-ptbr-ja-ko-es
Open

Blankll wants to merge 3 commits into
masterfrom
feat/i18n-zhtw-ptbr-ja-ko-es

Conversation

@Blankll

@Blankll Blankll commented Nov 13, 2026

Copy link
Copy Markdown
Member

Closes the sqlkit portion of wentsen/geekfun#79

What

Adds Traditional Chinese (Taiwan), pt-BR, Japanese, Korean, and Spanish to SqlKit, with full translations of all UI strings.

  • src/lang/: five new catalogs (zhTW, ptBR, jaJP, koKR, esES, 1599 keys each), registered in the i18n setup. System-language detection now maps zh-TW/HK/MO/Hant → zhTW and the pt/ja/ko/es prefixes to their locales; invalid stored values fall back to detection, and fallbackLocale: 'enUS' renders English for any missing key.
  • src/__tests__/i18nParity.test.ts: every locale file must carry exactly the enUS key set; CI fails on drift instead of silently rendering English at runtime. The existing key-usage test continues to pass.
  • docs/I18N.md: updated for the seven locales and documents the steps to contribute another language.
  • README: four new translations plus the expanded language navigation line.
  • CHANGELOG: drops a product-name reference from an old toolbar entry, keeping the entry neutral.

Verification

  • npx jest src/__tests__/i18nParity.test.ts — 6 locales, all key sets identical to enUS (1599 keys)
  • npx jest src/__tests__/i18nKeys.test.ts — passes
  • vue-tsc --noEmit clean

- new src/lang catalogs with full translations (1599 keys each, parity-tested)
- register the five locales and extend system-language detection
- add a key-parity test guarding every locale against the enUS key set
- update docs/I18N.md for the seven locales and the add-a-language workflow
- add README translations and expand the language navigation line
- changelog: drop the product name reference from the toolbar entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant