summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 8cacf4a7b7..d778f02abe 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -425,7 +425,7 @@ class ApplicationMain {
// Blocks navigation since it's not needed.
this.blockNavigation();
- this.translations = this.updateCurrentLocale();
+ this.updateCurrentLocale();
this.daemonRpc.addConnectionObserver(
new ConnectionObserver(this.onDaemonConnected, this.onDaemonDisconnected),
@@ -1153,7 +1153,8 @@ class ApplicationMain {
IpcMainEventChannel.guiSettings.handleSetPreferredLocale((locale: string) => {
this.guiSettings.preferredLocale = locale;
- return Promise.resolve(this.updateCurrentLocale());
+ this.updateCurrentLocale();
+ return Promise.resolve(this.translations);
});
IpcMainEventChannel.account.handleCreate(() => this.createNewAccount());
@@ -1526,7 +1527,8 @@ class ApplicationMain {
const messagesTranslations = loadTranslations(this.locale, messages);
const relayLocationsTranslations = loadTranslations(this.locale, relayLocations);
- return {
+
+ this.translations = {
locale: this.locale,
messages: messagesTranslations,
relayLocations: relayLocationsTranslations,