From afed8b29e8782478a96766ffb7850be968ac9edd Mon Sep 17 00:00:00 2001 From: braniii Date: Thu, 25 Jan 2024 21:58:46 +0100 Subject: [PATCH] Add strings for new languages. --- app/lib/core/language.dart | 6 +++++- app/lib/l10n/app_en.arb | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/lib/core/language.dart b/app/lib/core/language.dart index d187910..edf84fc 100644 --- a/app/lib/core/language.dart +++ b/app/lib/core/language.dart @@ -27,8 +27,12 @@ class Language { /// get language name String languageLong(BuildContext context) => { systemDefault: AppLocalizations.of(context)!.defaultLang, - 'en': AppLocalizations.of(context)!.english, + 'cs': AppLocalizations.of(context)!.czech, 'de': AppLocalizations.of(context)!.german, + 'en': AppLocalizations.of(context)!.english, + 'ko': AppLocalizations.of(context)!.korean, + 'nb': AppLocalizations.of(context)!.norwegian, + 'pl': AppLocalizations.of(context)!.polish, }[language] ?? 'error'; @override diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index 8452746..77ba92e 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -54,6 +54,22 @@ "@english": { "description": "English" }, + "czech": "Czech", + "@czech": { + "description": "Czech" + }, + "korean": "Korean", + "@korean": { + "description": "Korean" + }, + "polish": "Polish", + "@polish": { + "description": "Polish" + }, + "norwegian": "Norwegian", + "@norwegian": { + "description": "Norwegian" + }, "defaultLang": "System default", "@defaultLang": { "description": "System default language."