Skip to content

feat(i18n): add Simplified Chinese (zh-CN) translation#1248

Merged
CyberTimon merged 2 commits into
CyberTimon:mainfrom
RavenLeung:i18n/zh-CN-translation
Jun 7, 2026
Merged

feat(i18n): add Simplified Chinese (zh-CN) translation#1248
CyberTimon merged 2 commits into
CyberTimon:mainfrom
RavenLeung:i18n/zh-CN-translation

Conversation

@RavenLeung
Copy link
Copy Markdown
Contributor

@RavenLeung RavenLeung commented Jun 6, 2026

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 like zh. 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

  • Bug fix
  • New feature
  • Breaking change
  • Performance improvement
  • Code refactoring
  • Documentation update
  • UI/UX improvement
  • Build/CI or Dependency update

Changes Made

  • Added complete Simplified Chinese translations for all 1,369 application UI translation keys.
  • Covered UI text across adjustments, editor, export, library, masks, settings, modals, and shared UI components.
  • Added support for full locale code matching during language auto-detection.
  • Improved detection behavior so zh-CN is matched before falling back to zh.
  • Ensured Chinese users with compatible system or browser locale settings automatically see the Simplified Chinese UI on first launch.
  • Reviewed translations for consistency, clarity, and suitability within the application UI.
  • Preserved existing fallback behavior for other languages.

Screenshots/Videos

Not applicable.

Testing

  • I have tested these changes locally and confirmed that they work as expected without issues

Test Configuration:

  • OS: Windows 11
  • Hardware: AMD Ryzen 9 5950X, Nvidia RTX 3080 Ti

Checklist

  • My code follows the project's code style
  • I haven't added unnecessary AI-generated code comments
  • My changes generate no new warnings or errors

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:

  • This PR is entirely AI-generated
  • This PR is AI-generated but guided by a human
  • This PR was handwritten with AI assistance (spell check, logic suggestions, error resolving)
  • This PR contains only blood, sweat, and coffee (AI-free)

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>
@RavenLeung RavenLeung requested a review from CyberTimon as a code owner June 6, 2026 01:20
@CyberTimon
Copy link
Copy Markdown
Owner

Thanks so much!

@CyberTimon CyberTimon merged commit b12dd7b into CyberTimon:main Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants