mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Enable pt translation
This commit is contained in:
parent
1a2c1d9517
commit
f8c25800a1
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ final supportedLanguages = {
|
||||||
_AppLanguageEnum.greek.index, "ελληνικά", "Greek", const Locale("el")),
|
_AppLanguageEnum.greek.index, "ελληνικά", "Greek", const Locale("el")),
|
||||||
_AppLanguageEnum.polish.index: AppLanguage(
|
_AppLanguageEnum.polish.index: AppLanguage(
|
||||||
_AppLanguageEnum.polish.index, "język polski", "Polish", const Locale("pl")),
|
_AppLanguageEnum.polish.index, "język polski", "Polish", const Locale("pl")),
|
||||||
|
_AppLanguageEnum.portuguese.index: AppLanguage(
|
||||||
|
_AppLanguageEnum.portuguese.index, "Português", "Portuguese", const Locale("pt")),
|
||||||
_AppLanguageEnum.russian.index: AppLanguage(
|
_AppLanguageEnum.russian.index: AppLanguage(
|
||||||
_AppLanguageEnum.russian.index, "русский", "Russian", const Locale("ru")),
|
_AppLanguageEnum.russian.index, "русский", "Russian", const Locale("ru")),
|
||||||
_AppLanguageEnum.spanish.index: AppLanguage(
|
_AppLanguageEnum.spanish.index: AppLanguage(
|
||||||
|
@ -49,6 +51,7 @@ enum _AppLanguageEnum {
|
||||||
czech,
|
czech,
|
||||||
finnish,
|
finnish,
|
||||||
polish,
|
polish,
|
||||||
|
portuguese,
|
||||||
}
|
}
|
||||||
|
|
||||||
AppLanguage _getSelectedLanguage() {
|
AppLanguage _getSelectedLanguage() {
|
||||||
|
|
|
@ -92,6 +92,7 @@ class _MyAppState extends State<MyApp> implements SnackBarHandler {
|
||||||
Locale("cs"),
|
Locale("cs"),
|
||||||
Locale("fi"),
|
Locale("fi"),
|
||||||
Locale("pl"),
|
Locale("pl"),
|
||||||
|
Locale("pt"),
|
||||||
],
|
],
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
MyApp._globalContext = context;
|
MyApp._globalContext = context;
|
||||||
|
|
Loading…
Reference in a new issue