Skip to content

Feat/add translate option to main#389

Merged
egalvis27 merged 2 commits into
mainfrom
feat/add-translate-option-to-main
Jun 16, 2026
Merged

Feat/add translate option to main#389
egalvis27 merged 2 commits into
mainfrom
feat/add-translate-option-to-main

Conversation

@egalvis27

Copy link
Copy Markdown

What is Changed / Added


  • Added i18next support in the Electron Main process.
  • Implemented a Main i18n service that reuses existing Renderer locale JSON files (no duplicated translations).
  • Initialized Main i18n during app startup with the stored preferedLanguage.
  • Updated Tray menu labels and tooltip messages to use translated keys instead of hardcoded strings.
  • Added reactive Tray translation refresh when language changes.
  • Added language synchronization from Renderer to Main through IPC.
  • Exposed the language update API in preload and updated corresponding typings.
  • Added Main Tray translation keys to:
    • en.json
    • es.json
    • fr.json
  • Removed unnecessary translation wrapper in tray-menu.ts and used translateMain directly.

Why

  • Main process UI elements (Tray menu and tooltip) were still hardcoded in English, while Renderer already supported i18n.
  • This caused inconsistent language behavior across the application.
  • Reusing the same locale files ensures a single source of truth for translations.
  • Syncing language updates from Renderer to Main ensures Tray text updates immediately after users change language in settings.
  • Reduces maintenance cost and prevents future translation drift between Main and Renderer.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
22.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@egalvis27
egalvis27 merged commit b5fff1b into main Jun 16, 2026
10 of 11 checks passed
@egalvis27
egalvis27 deleted the feat/add-translate-option-to-main branch June 16, 2026 13:57
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