Skip to content

feat: apply chosen language to the electron locale - #206

Merged
YSamed merged 1 commit into
mainfrom
fix/electron-locale-switch
Oct 9, 2026
Merged

YSamed merged 1 commit into
mainfrom
fix/electron-locale-switch

Conversation

@YSamed

@YSamed YSamed commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Read the stored interfaceLanguage setting at startup, before the app is ready, and pass tr or en to Chromium with the lang switch. system adds no switch.
  • app.getLocale(), navigator.language and native menus now follow the language chosen in settings. Takes effect after a restart, like the rest of the language setting.

Test plan

  • npm run typecheck, prettier --check, npm test (771 passing)
  • Manual Electron check: lang=tr gives tr, lang=en gives en for app.getLocale() and navigator.language
  • Set the language to English on a Turkish system, restart, check the context menu and a site that reads navigator.language

- Read stored interfaceLanguage from SettingsStore before app ready in main.ts
- Pass tr or en to Chromium with the lang switch when not set to system
@YSamed
YSamed enabled auto-merge (squash) October 9, 2026 16:49
@YSamed
YSamed merged commit 1313a82 into main Oct 9, 2026
6 checks passed
@YSamed
YSamed deleted the fix/electron-locale-switch branch October 9, 2026 16:51
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