From 89854a45b5f6fd5a97698160f2da26573f2aaa4e Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 1 Sep 2024 11:43:40 +0200 Subject: [PATCH] add restart translations --- interface/src/app/status/RestartMonitor.tsx | 5 ++--- interface/src/i18n/de/index.ts | 2 ++ interface/src/i18n/en/index.ts | 2 ++ interface/src/i18n/fr/index.ts | 2 ++ interface/src/i18n/it/index.ts | 2 ++ interface/src/i18n/nl/index.ts | 2 ++ interface/src/i18n/no/index.ts | 2 ++ interface/src/i18n/pl/index.ts | 2 ++ interface/src/i18n/sk/index.ts | 3 ++- interface/src/i18n/sv/index.ts | 2 ++ interface/src/i18n/tr/index.ts | 2 ++ 11 files changed, 22 insertions(+), 4 deletions(-) diff --git a/interface/src/app/status/RestartMonitor.tsx b/interface/src/app/status/RestartMonitor.tsx index 79c351fac..83377d1ee 100644 --- a/interface/src/app/status/RestartMonitor.tsx +++ b/interface/src/app/status/RestartMonitor.tsx @@ -52,14 +52,13 @@ const RestartMonitor = () => { fontWeight={400} textAlign="center" > - {/* TODO: translate these */} {data?.status === 'uploading' ? LL.WAIT_FIRMWARE() : data?.status === 'restarting' ? LL.APPLICATION_RESTARTING() : data?.status === 'ready' - ? 'Reloading' - : 'Preparing'} + ? LL.RESTARTING_PRE() + : LL.RESTARTING_POST()} {LL.PLEASE_WAIT()}… diff --git a/interface/src/i18n/de/index.ts b/interface/src/i18n/de/index.ts index 75ff91fe5..080314a24 100644 --- a/interface/src/i18n/de/index.ts +++ b/interface/src/i18n/de/index.ts @@ -339,6 +339,8 @@ const de: Translation = { UPGRADE_AVAILABLE: 'Es ist ein Firmware-Upgrade verfügbar!', LATEST_VERSION: 'Sie verwenden die neueste Version.', PLEASE_WAIT: 'Bitte warten', + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default de; diff --git a/interface/src/i18n/en/index.ts b/interface/src/i18n/en/index.ts index 7fbd40606..a096f2f16 100644 --- a/interface/src/i18n/en/index.ts +++ b/interface/src/i18n/en/index.ts @@ -339,6 +339,8 @@ const en: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', LATEST_VERSION: 'You are using the latest version.', PLEASE_WAIT: 'Please wait', + RESTARTING_PRE: 'Initializing', + RESTARTING_POST: 'Reloading' }; export default en; diff --git a/interface/src/i18n/fr/index.ts b/interface/src/i18n/fr/index.ts index 71b9fc2be..931329133 100644 --- a/interface/src/i18n/fr/index.ts +++ b/interface/src/i18n/fr/index.ts @@ -339,6 +339,8 @@ const fr: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default fr; diff --git a/interface/src/i18n/it/index.ts b/interface/src/i18n/it/index.ts index 887f17ef5..d7505990f 100644 --- a/interface/src/i18n/it/index.ts +++ b/interface/src/i18n/it/index.ts @@ -339,6 +339,8 @@ const it: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default it; diff --git a/interface/src/i18n/nl/index.ts b/interface/src/i18n/nl/index.ts index 4a1dc765a..2b6b10b63 100644 --- a/interface/src/i18n/nl/index.ts +++ b/interface/src/i18n/nl/index.ts @@ -339,6 +339,8 @@ const nl: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default nl; diff --git a/interface/src/i18n/no/index.ts b/interface/src/i18n/no/index.ts index 02f777fb8..fd43d0317 100644 --- a/interface/src/i18n/no/index.ts +++ b/interface/src/i18n/no/index.ts @@ -339,6 +339,8 @@ const no: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default no; diff --git a/interface/src/i18n/pl/index.ts b/interface/src/i18n/pl/index.ts index 7a1acb6bc..c7fcd40a6 100644 --- a/interface/src/i18n/pl/index.ts +++ b/interface/src/i18n/pl/index.ts @@ -339,6 +339,8 @@ const pl: BaseTranslation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default pl; diff --git a/interface/src/i18n/sk/index.ts b/interface/src/i18n/sk/index.ts index 17788f011..8cc61f77c 100644 --- a/interface/src/i18n/sk/index.ts +++ b/interface/src/i18n/sk/index.ts @@ -339,7 +339,8 @@ const sk: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate - + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default sk; diff --git a/interface/src/i18n/sv/index.ts b/interface/src/i18n/sv/index.ts index b344117b8..d4aab8f51 100644 --- a/interface/src/i18n/sv/index.ts +++ b/interface/src/i18n/sv/index.ts @@ -339,6 +339,8 @@ const sv: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default sv; diff --git a/interface/src/i18n/tr/index.ts b/interface/src/i18n/tr/index.ts index f0f356323..3e4fad8c1 100644 --- a/interface/src/i18n/tr/index.ts +++ b/interface/src/i18n/tr/index.ts @@ -339,6 +339,8 @@ const tr: Translation = { UPGRADE_AVAILABLE: 'There is a firmware upgrade available!', // TODO translate LATEST_VERSION: 'You are using the latest version.', // TODO translate PLEASE_WAIT: 'Please wait', // TODO translate + RESTARTING_PRE: 'Initializing', // TODO translate + RESTARTING_POST: 'Reloading' // TODO translate }; export default tr;