Skip to content

Add Chinese (简体中文) support for OCR and interface language - #4

Open
luw2007 wants to merge 1 commit into
batu3384:mainfrom
luw2007:feature/chinese-support
Open

luw2007 wants to merge 1 commit into
batu3384:mainfrom
luw2007:feature/chinese-support

Conversation

@luw2007

@luw2007 luw2007 commented Sep 11, 2026

Copy link
Copy Markdown

Changes

  • Add OCRLanguagePreference.chinese = "zh-Hans" for Vision framework Chinese recognition
  • Add InterfaceLanguage.chinese option (resolved identifier: zh)
  • Extend L10n system with triple(tr, en, zh) function for three-language strings
  • Translate core settings strings, section titles, capture modes, and output formats to Simplified Chinese
  • Unimplemented strings fall back to English automatically

Notes

  • OCR language uses zh-Hans (Simplified Chinese) as recognized by VNRecognizeTextRequest
  • Interface language uses zh which maps to Simplified Chinese on macOS
  • The triple() helper is backward-compatible: existing pair() calls continue to work

- OCRLanguagePreference: add .chinese (zh-Hans) with title/shortTitle
- InterfaceLanguage: add .chinese with resolvedIdentifier 'zh'
- L10n: add usesChinese check and triple(tr, en, zh) function;
  pair() falls back to English when Chinese selected
- Translate core L10n strings, settings section titles, capture modes,
  output presets, and key UI labels to Chinese
- AutomationSupport: add Chinese to automation language mapping
- Untranslated strings fall back to English
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.

1 participant