Skip to content

fix(desktop): global I18nService init and locale sync on language change#371

Merged
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:fix/desktop-global-i18n-sync
Apr 9, 2026
Merged

fix(desktop): global I18nService init and locale sync on language change#371
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:fix/desktop-global-i18n-sync

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented Apr 9, 2026

Summary

  • Initialize global I18nService during desktop startup (from config service) so bot/remote-connect responses use the correct locale.
  • After i18n_set_language, sync the in-memory I18nService so backend strings match the UI without restarting the app.

Test plan

  • cargo check -p bitfun-desktop
  • Desktop: change UI language and verify remote/bot-facing messages follow the new locale without restart.

- Initialize global I18nService at startup from config service so bot/remote-connect uses correct locale.
- After i18n_set_language, update in-memory I18nService so responses match UI without restart.
@bobleer bobleer merged commit 26f1277 into GCWing:main Apr 9, 2026
1 check passed
@bobleer bobleer deleted the fix/desktop-global-i18n-sync branch April 9, 2026 03:47
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