Skip to content

[Feature] Add Russian and English localization - #19

Merged
JqyModi merged 2 commits into
JqyModi:jqy/winfrom
jabrailkhalil:codex/russian-english-localization
Aug 15, 2026
Merged

JqyModi merged 2 commits into
JqyModi:jqy/winfrom
jabrailkhalil:codex/russian-english-localization

Conversation

@jabrailkhalil

Copy link
Copy Markdown

Summary

This contribution adds complete Russian and English localization for the desktop profile manager while keeping Chinese available as an option.

  • Adds a language selector for Chinese, English, and Russian.
  • Stores the selected language locally and applies it to the native desktop menus and window title.
  • Adds an external Russian translation table with English fallback coverage.
  • Localizes remote announcement banners and prevents unknown Chinese announcements from leaking into English or Russian mode.
  • Keeps authentication state, profile data, API keys, cookies, and conversation history independent from localization.
  • Replaces the Unix-only preload copy command with a cross-platform Node.js script so Windows builds work from npm scripts.

Verification

  • npm run typecheck
  • npm run build
  • npm run verify:paths
  • npm run package:win:x64:dir

The change is based on jqy/win and is ready for maintainer review. The local packaged build was tested separately; no credentials or private user data are included.

@jabrailkhalil

Copy link
Copy Markdown
Author

Russian interface preview

Localized dashboard and profile status view:

codex-clipboard-2bba73c7-6a89-47e3-8068-17dbfcec59b8

@JqyModi JqyModi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢贡献,方向与项目的国际化需求一致。现有英文界面已经存在,这个 PR 的主要价值是补齐语言持久化、原生菜单/公告国际化,并新增完整俄语。

我在基于当前 jqy/win 的隔离工作树中验证通过:

  • typecheck
  • production build
  • path provider verification
  • profile generation verification
  • subscription auth / profile creation / reauthorization
  • Windows launcher / config inheritance / profile creation / session sync
  • 英文与俄语翻译键:217 / 217,无缺失

合并前需要修复一个 macOS 阻塞项:

macOS 应用菜单缺少 appMenu

buildApplicationMenu() 当前直接以“文件/File/Файл”作为第一项。Electron 在 macOS 上要求第一项是应用菜单(role: "appMenu");否则第一项会占据应用菜单位置,About、Services、Hide/Hide Others 等标准 macOS 菜单也会丢失。

请在 darwin 下先加入 { role: "appMenu" }(或构建等价的完整应用菜单),再追加 File/Edit/View/Window/Help;Windows 继续保留当前结构即可。建议补一个针对生成菜单模板的验证,防止后续回归。

修复后请将 PR 标记为 Ready for review,我会重新运行验证并继续合并流程。

@jabrailkhalil
jabrailkhalil marked this pull request as ready for review August 14, 2026 07:47
@jabrailkhalil

jabrailkhalil commented Aug 14, 2026 •

Copy link
Copy Markdown
Author

Implemented the requested macOS menu fix:

  • appMenu is now the first menu item on darwin.
  • The Windows menu order remains unchanged.
  • Added regression verification covering both platform templates.

Typecheck, production build, Windows packaging, and the platform-relevant verification scripts pass.

The pull request is ready for re-review. Thank you!

@JqyModi JqyModi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

验收通过,批准合并。

已复验贡献者新增的 macOS 菜单修复:

  • macOS 菜单首项为 role: "appMenu";
  • Windows 菜单顺序保持不变;
  • 新增应用菜单回归验证并通过。

完整本地验证通过:

  • TypeScript 主进程和渲染进程检查;
  • 生产构建;
  • 应用菜单、路径、Profile 生成验证;
  • 订阅授权、Profile 创建、重新授权;
  • Windows 启动、配置继承、Profile 创建、历史同步;
  • 中英文俄语翻译键 217/217,无缺失。

感谢贡献,PR 可以合并。

@JqyModi
JqyModi merged commit 9bfd5a0 into JqyModi:jqy/win Aug 15, 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