Repository navigation
Conversation
- 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
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.
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 mapszh-TW/HK/MO/Hant→zhTWand thept/ja/ko/esprefixes to their locales; invalid stored values fall back to detection, andfallbackLocale: 'enUS'renders English for any missing key.src/__tests__/i18nParity.test.ts: every locale file must carry exactly theenUSkey 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.Verification
npx jest src/__tests__/i18nParity.test.ts— 6 locales, all key sets identical toenUS(1599 keys)npx jest src/__tests__/i18nKeys.test.ts— passesvue-tsc --noEmitclean