From bb98f13b196c49a08ac12b77e49bb9b9dab2e902 Mon Sep 17 00:00:00 2001 From: pswid <78219494+pswid@users.noreply.github.com> Date: Tue, 18 Oct 2022 13:47:10 +0200 Subject: [PATCH] alternative word translations implementation idea just for demonstration! --- interface/src/framework/system/SystemStatusForm.tsx | 4 ++-- interface/src/i18n/i18n-types.ts | 2 +- interface/src/i18n/pl/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/framework/system/SystemStatusForm.tsx b/interface/src/framework/system/SystemStatusForm.tsx index 47dc416e4..9bdd4a4c0 100644 --- a/interface/src/framework/system/SystemStatusForm.tsx +++ b/interface/src/framework/system/SystemStatusForm.tsx @@ -124,7 +124,7 @@ const SystemStatusForm: FC = () => { const renderVersionDialog = () => { return ( setShowingVersion(false)}> - {LL.VERSION_CHECK()} + {LL.VERSION_CHECK(1)} {latestVersion && ( @@ -232,7 +232,7 @@ const SystemStatusForm: FC = () => { {latestVersion && ( )} diff --git a/interface/src/i18n/i18n-types.ts b/interface/src/i18n/i18n-types.ts index fec5874b7..bc2fe384c 100644 --- a/interface/src/i18n/i18n-types.ts +++ b/interface/src/i18n/i18n-types.ts @@ -1729,7 +1729,7 @@ export type TranslationFunctions = { /** * Version Check */ - VERSION_CHECK: () => LocalizedString + VERSION_CHECK: (arg0: string | number | boolean) => LocalizedString /** * The latest */ diff --git a/interface/src/i18n/pl/index.ts b/interface/src/i18n/pl/index.ts index 40a2459a1..656ad63a6 100644 --- a/interface/src/i18n/pl/index.ts +++ b/interface/src/i18n/pl/index.ts @@ -173,7 +173,7 @@ const pl: BaseTranslation = { FACTORY_RESET: 'Ustawienia fabryczne', SYSTEM_FACTORY_TEXT: 'Interfejs EMS-ESP został przywrócony do ustawień fabrycznych i zostanie teraz ponownie uruchomiony.', SYSTEM_FACTORY_TEXT_DIALOG: 'Czy jesteś pewien, że chcesz przywrócić ustawienia fabryczne interfejsu EMS-ESP? ', - VERSION_CHECK: 'Wersje firmware\'u', + VERSION_CHECK: '{{Sprawdź wersję (main translation idx=0)|Sprawdzanie wersji (alt translation idx=1)|not used (translation idx=other)}}', THE_LATEST: 'Najnowsza', OFFICIAL: 'oficjalna', DEVELOPMENT: 'testowa',