Skip to content

Commit

Permalink
Add strings for new languages.
Browse files Browse the repository at this point in the history
  • Loading branch information
braniii committed Jan 25, 2024
1 parent cd6a2e2 commit afed8b2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/core/language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ class Language {
/// get language name
String languageLong(BuildContext context) => <String, String>{
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
Expand Down
16 changes: 16 additions & 0 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit afed8b2

Please sign in to comment.