Repository navigation
Conversation
- new src/lang catalogs with full translations (1789 keys each, parity-tested) - register the four locales in the i18n setup and extend system-language detection - fix the settings picker mapping any non-Chinese selection back to English - add a key-parity test guarding every locale against the enUS key set - document the i18n setup and the add-a-language workflow in docs/I18N.md - add README translations and expand the language navigation line
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #546 +/- ##
==========================================
+ Coverage 72.21% 72.26% +0.04%
==========================================
Files 171 174 +3
Lines 29769 29701 -68
Branches 1509 1514 +5
==========================================
- Hits 21498 21463 -35
+ Misses 7810 7772 -38
- Partials 461 466 +5
🚀 New features to boost your workflow:
|
This branch has not been deployed
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 dockit portion of wentsen/geekfun#79
What
Adds pt-BR, Japanese, Korean, and Spanish to DocKit, with full translations of all UI strings.
src/lang/: four new catalogs (ptBR,jaJP,koKR,esES, 1789 keys each), registered in the i18n setup with system-language detection extended (pt*/ja*/ko*/es*prefixes;zh-TW/HK/MO/Hantunchanged). Missing keys now fall back toenUSbecause the config gained an explicitfallbackLocale.AUTOnow delegates to the same detection the startup path uses.getDocLanguage()still returns'en'for the four new locales, since docs and agent prompts ship only in English and Chinese.tests/i18nParity.test.ts: every locale file must carry exactly theenUSkey set; CI now fails on drift instead of silently rendering English at runtime.docs/I18N.md: documents the setup and the steps to contribute another language.Verification
npx jest tests/i18nParity.test.ts— 6 locales, all key sets identical toenUS(1789 keys)vue-tsc --noEmitclean