Skip to content

i18n: translate UI, core modules, manual, and metadata to English - #132

Open
Abdelmonem-abotaleb wants to merge 1 commit into
RoutineMiku:mainfrom
Abdelmonem-abotaleb:feat/english-translation
Open

Abdelmonem-abotaleb wants to merge 1 commit into
RoutineMiku:mainfrom
Abdelmonem-abotaleb:feat/english-translation

Conversation

@Abdelmonem-abotaleb

Copy link
Copy Markdown

Summary

  • Translated the UI (src/ui/), main process (src/main.js), core modules (src/core/), and driver presets (src/drivers/) from Chinese to English.
  • Set default UI/engine locale to en / en-US in src/core/i18n.js, src/ui/i18n.js, and src/core/store.js.
  • Translated docs/USER-MANUAL.md and docs/build-manual-html.py, regenerated src/ui/manual.html, and updated anchor/regex mappings in src/core/manual.js.
  • Translated package/build metadata in package.json, electron-builder.yml, and build/msix.js.
  • Updated string-matching assertions in test/ to match the English output.

Testing

  • Ran npm test — all 16 test suites pass.

Note: Hardcoded Chinese strings were translated directly to English and the default locale was switched to English. Happy to adjust or route strings through i18n.js if you'd prefer keeping Chinese as the default with full bilingual switching.

@adityakhadsecode

Copy link
Copy Markdown

为了减少重复的 i18n PR,先同步一下我这边正在做的低冲突实现,供维护者指定 canonical 方向:

  • 源码界面文案继续用中文,英文词典放在 src/i18n/en.json,key 就是中文原文;只在显示层翻译,adb/emulator 命令、日志正则、包名、路径、配置键和 IPC 通道都不进词典。
  • 新增 uiLanguage 设置(auto / zh / en):老用户升级保持中文,新用户按系统语言,缺失条目显式回退中文;切换即时生效,不重载窗口。
  • 增加 npm run i18n:extract / npm run i18n:check(key / 占位符 / 缺失检查)和双语 UI 冒烟 npm run test:ui:en。
  • 目前已覆盖主窗口、设置页、壳窗口、开机动画、托盘与原生对话框;内置手册和部分核心诊断文案暂回退中文。

如果 #132 是维护者倾向的方向,我可以把这些检查和语言设置拆成可复用补丁接上去;否则我按上述方案提 PR。也希望维护者明确一个 canonical i18n PR,避免 #84 / #113 / #132 继续分叉。

English: I'm building a low-conflict display-layer i18n (Chinese source strings as keys, English dictionary, language setting with Chinese fallback for existing users, CI parity checks). Happy to rebase/contribute this to whichever PR the maintainer designates as canonical.

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