Add Chinese Translation Support#323
Open
wolfbolin wants to merge 1 commit into
Open
Conversation
- Create zh.json translation file with complete Chinese translations - Update index.ts to import and configure Chinese language - Add 'zh' to SupportedLanguage type definition - Add Chinese language option to system settings page Signed-off-by: WolfBolin <wolfbolin@foxmail.com>
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
This PR adds complete Chinese language support to Open Archiver, including:
New Translation File: Created
packages/frontend/src/lib/translations/zh.jsonwith full Chinese translations for all interface elementsTranslation Configuration: Updated
packages/frontend/src/lib/translations/index.tsto import and register the Chinese languageType Definition: Added
'zh'to theSupportedLanguagetype inpackages/types/src/system.types.tsUI Integration: Added Chinese language option to the system settings page in
packages/frontend/src/routes/dashboard/settings/system/+page.svelteThe translation follows the existing structure and terminology used in other language files, ensuring consistency across all supported languages. Users can now select Chinese from the language dropdown in system settings to use the application in Chinese.
This change enhances the accessibility of Open Archiver for Chinese-speaking users, aligning with the project's goal of providing a globally accessible email archiving solution.