Install Lingui with multilingual visual parity coverage - #44
Merged
Merged
Conversation
- initialize i18n per the dynamic-loading guide: top-level-await startup that awaits the persisted locale's catalog before first render, keyed dynamic import emitting one lazy messages chunk per locale, latest-request-wins activation, and html lang derived from the shared locale config - replace the hand-written navigator scan with @lingui/detect-locale (fromNavigator + ordered navigator.languages fallback) in config.ts, which now also owns SOURCE_LOCALE and the zh->zh-Hans language-tag override - move the message descriptor registry back to src/lingui.ts: the extractor excludes the catalog directory itself, so descriptors under src/locales/ were never extracted (52 achievement messages existed only as obsolete #~ entries that --clean would delete) - restore msg() descriptors so extraction sees all 126 messages; resolve descriptors at call sites with t() instead of template-literal IDs - wire pnpm extract --clean into build, add i18n:check catalog-drift script, drop the dead compile script (the vite plugin compiles .po on import) - re-extract all 15 catalogs: active entries with live origins, stale gr/jp/se Language headers fixed, 9 newly wrapped UI strings translated - wrap previously untranslated UI strings found by eslint-plugin-lingui (Close/Menu/Toggle theme/Please wait/Right Arrow/error fallback/GitHub link/Article Preview/Confirm action/Ludwig Ahgren alt) with translator comments; tune no-unlocalized-strings ignores to identifier-shaped data - fix rehydration crash class flagged by review: persisted known_wiki_languages null now falls back to the default list, and the settings persist v1->v2 bump keeps unrelated fields via a migrate fn
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
Verification
English UI
Home
Settings