Repository navigation
feat(i18n): add Russian UI language (auto-detected) - #113
Open
nikitosskk wants to merge 4 commits into
Open
nikitosskk wants to merge 4 commits into
nikitosskk wants to merge 4 commits into
Conversation
Update from task 66c62c40-1440-4139-948f-7142f3889cb3
- 字典扩到 2175 键:动态状态、内置手册、驱动 JSON、运行时与磁盘面板 - manual.html 接入 i18n.js;驱动清单与按钮文案改为俄语 - 修复纯占位符词条生成的万能正则吞掉后续翻译 - 主进程原生对话框的确认按钮与标题统一走 tr() - 新增 src/ui/i18n.js 生成器 tools/i18n/build.js 验证:抽取器 0 缺失,DOM 四个窗口无中文,测试 9/9,NSIS 安装包已重建。
- engine.locale defaults to ru-RU; legacy zh-CN settings migrate once unless the user explicitly picked a language (localeChosen). - emulator passes -change-locale ru-RU; snapshot is invalidated when system_locales is not the target so the next cold boot applies it. - Locale correction now runs independently of the Chinese IME switch. - Settings UI offers Russian first and records an explicit language choice. - Timezone follows the locale (Europe/Moscow for ru-RU).
This was referenced Nov 23, 2026
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.
Русский язык теперь является языком интерфейса ApkStart.
navigator.languageв рендерере,app.getPreferredSystemLanguages()в главном процессе). Новый переключатель в настройках не добавлен; для всех остальных языков поведение осталось прежним (китайский интерфейс).manual.html), встроенные шаблоны драйверов, нативные диалоги и уведомления — всего 2175 ключей.tools/i18n/build.js(генератор словаря) иsrc/ui/i18n.js(рантайм-словарь); перевод работает и для строк, в которых плейсхолдеры уже заменены на значения.electron-builder.ymlдобавлена локальru.Проверки: извлечение строк — 0 непереведённых; DOM всех четырёх окон не содержит китайского; тесты 9/9; NSIS-сборка пересобрана.
English summary: Russian is now a supported UI language, selected automatically from the system locale. Full translation covers dynamic runtime messages, the embedded manual, driver templates, native dialogs and notifications. No new settings switch; other locales keep the original Chinese UI.