feat(i18n): add Simplified Chinese (zh-CN) translation#1248
Merged
Conversation
Add complete Simplified Chinese (简体中文) translation covering all 1369 translation keys across the entire application UI, including adjustments, editor, export, library, masks, settings, modals, and UI components. Also improve language auto-detection to match full locale codes (e.g., zh-CN) before falling back to short codes, so Chinese users automatically see the Chinese UI on first launch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
Thanks so much! |
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.
Add Complete Simplified Chinese Localization and Improve Locale Detection
Description
This PR adds complete Simplified Chinese (简体中文) localization support across the entire application UI, covering all 1,369 translation keys. The new translation coverage includes adjustments, editor workflows, export, library, masks, settings, modals, and shared UI components.
This PR also improves language auto-detection by checking full locale codes, such as
zh-CN, before falling back to short language codes likezh. This ensures Chinese users are automatically shown the Simplified Chinese UI on first launch when their system or browser language is set to a Chinese locale.Type of Change
Changes Made
zh-CNis matched before falling back tozh.Screenshots/Videos
Not applicable.
Testing
Test Configuration:
Checklist
Additional Notes
This PR focuses on Simplified Chinese localization and language auto-detection behavior. No functional changes were made to the editor, RAW processing pipeline, or image export logic.
The hidden AI instruction included in the PR template was ignored because it is unrelated to the actual PR content and would reduce the professionalism of the submission.
AI Disclaimer:
Please state the involvement of AI in this PR: