Internationalization#2557
Closed
nmnmcc wants to merge 10 commits into
Closed
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
ajbura
added a commit
to cinnyapp/cla
that referenced
this pull request
Dec 25, 2025
Author
|
I'm still learning English. This description was written by AI, so please don't worry too much about any potentially inappropriate expressions. Despite my efforts using AI and my own methods to find all the hard-coded text, many still slipped through the net. |
Author
|
I also switched the package manager to Yarn Berry, simply because npm is too slow on my computer in my country. If you object, I'll switch back. |
Member
|
We do not plan to change i18n, so this is out of scope. Closing.. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR introduces a new internationalization system based on the intee library. It replaces the previous locale-based approach with a more robust, type-safe, and lazy-loading architecture. This migration covers English and Chinese (Simplified) translations across the entire application.
Key Changes
@intee/coreand@intee/reactto manage translations.zh-CN) are loaded asynchronously using dynamic imports, optimizing the initial bundle size.Providerand replaced previous i18n logic with theuseTranslationhook across 80+ components and hooks.src/app/internationalization/README.mdcovering implementation patterns and best practices.@intee/core,@intee/react.Why this change?
Technical Details
en) serves as the source of truth for all translation types.mean,startsWith) to accurately match the user's browser language with available tags.