From a160c3d6fa80d14a45ddc842fda9ac2a3984d374 Mon Sep 17 00:00:00 2001 From: Johan Kwarnmark Date: Wed, 20 Nov 2019 11:49:15 +0100 Subject: [PATCH] Translate the window title for notification settings --- src/locale/en-US.json | 1 + src/locale/en.json | 1 + src/locale/fr-FR.json | 1 + src/locale/fr.json | 1 + src/locale/ja-JP.json | 1 + src/locale/ja.json | 1 + src/renderer/preload-component.ts | 2 +- 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/locale/en-US.json b/src/locale/en-US.json index c580fca5..3bfa9236 100644 --- a/src/locale/en-US.json +++ b/src/locale/en-US.json @@ -93,6 +93,7 @@ "CANCEL": "CANCEL", "Monitor": "Monitor", "Notification Settings": "Notification Settings", + "Notification Settings - Symphony": "Notification Settings - Symphony", "Notification shown on Monitor: ": "Notification shown on Monitor: ", "OK": "OK", "Position": "Position", diff --git a/src/locale/en.json b/src/locale/en.json index c580fca5..3bfa9236 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -93,6 +93,7 @@ "CANCEL": "CANCEL", "Monitor": "Monitor", "Notification Settings": "Notification Settings", + "Notification Settings - Symphony": "Notification Settings - Symphony", "Notification shown on Monitor: ": "Notification shown on Monitor: ", "OK": "OK", "Position": "Position", diff --git a/src/locale/fr-FR.json b/src/locale/fr-FR.json index dd6a3181..72a603be 100644 --- a/src/locale/fr-FR.json +++ b/src/locale/fr-FR.json @@ -93,6 +93,7 @@ "CANCEL": "ANNULER", "Monitor": "Moniteur", "Notification Settings": "Paramètres des notifications", + "Notification Settings - Symphony": "Paramètres des notifications - Symphony", "Notification shown on Monitor: ": "Notification affichée sur le Moniteur: ", "OK": "OK", "Position": "Position", diff --git a/src/locale/fr.json b/src/locale/fr.json index dd6a3181..72a603be 100644 --- a/src/locale/fr.json +++ b/src/locale/fr.json @@ -93,6 +93,7 @@ "CANCEL": "ANNULER", "Monitor": "Moniteur", "Notification Settings": "Paramètres des notifications", + "Notification Settings - Symphony": "Paramètres des notifications - Symphony", "Notification shown on Monitor: ": "Notification affichée sur le Moniteur: ", "OK": "OK", "Position": "Position", diff --git a/src/locale/ja-JP.json b/src/locale/ja-JP.json index a06e9797..0f40300d 100644 --- a/src/locale/ja-JP.json +++ b/src/locale/ja-JP.json @@ -93,6 +93,7 @@ "CANCEL": "キャンセル", "Monitor": "モニター", "Notification Settings": "通知設定", + "Notification Settings - Symphony": "通知設定 - Symphony", "Notification shown on Monitor: ": "モニターに表示する通知:", "OK": "OK", "Position": "位置", diff --git a/src/locale/ja.json b/src/locale/ja.json index a06e9797..0f40300d 100644 --- a/src/locale/ja.json +++ b/src/locale/ja.json @@ -93,6 +93,7 @@ "CANCEL": "キャンセル", "Monitor": "モニター", "Notification Settings": "通知設定", + "Notification Settings - Symphony": "通知設定 - Symphony", "Notification shown on Monitor: ": "モニターに表示する通知:", "OK": "OK", "Position": "位置", diff --git a/src/renderer/preload-component.ts b/src/renderer/preload-component.ts index 9d07bf34..144f04a3 100644 --- a/src/renderer/preload-component.ts +++ b/src/renderer/preload-component.ts @@ -68,7 +68,7 @@ const load = () => { component = NotificationComp; break; case components.notificationSettings: - document.title = 'Notification Settings - Symphony'; + document.title = i18n.t('Notification Settings - Symphony', 'NotificationSettings')(); loadStyle(components.notificationSettings); component = NotificationSettings; break;