mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Enable the new de translation
This commit is contained in:
parent
268d8ecb87
commit
8291972e6b
2 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,8 @@ final supportedLanguages = {
|
|||
_AppLanguageEnum.english.index, "English", "English", const Locale("en")),
|
||||
_AppLanguageEnum.french.index: AppLanguage(
|
||||
_AppLanguageEnum.french.index, "français", "French", const Locale("fr")),
|
||||
_AppLanguageEnum.german.index: AppLanguage(
|
||||
_AppLanguageEnum.german.index, "Deutsch", "German", const Locale("de")),
|
||||
_AppLanguageEnum.greek.index: AppLanguage(
|
||||
_AppLanguageEnum.greek.index, "ελληνικά", "Greek", const Locale("el")),
|
||||
_AppLanguageEnum.russian.index: AppLanguage(
|
||||
|
@ -37,6 +39,7 @@ enum _AppLanguageEnum {
|
|||
greek,
|
||||
french,
|
||||
russian,
|
||||
german,
|
||||
}
|
||||
|
||||
AppLanguage _getSelectedLanguage() {
|
||||
|
|
|
@ -71,11 +71,14 @@ class _MyAppState extends State<MyApp> implements SnackBarHandler {
|
|||
locale: language_util.getSelectedLocale(),
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: <Locale>[
|
||||
// the order here doesn't matter, except for the first one, which must
|
||||
// be en
|
||||
Locale("en"),
|
||||
Locale("el"),
|
||||
Locale("es"),
|
||||
Locale("fr"),
|
||||
Locale("ru"),
|
||||
Locale("de"),
|
||||
],
|
||||
builder: (context, child) {
|
||||
MyApp._globalContext = context;
|
||||
|
|
Loading…
Reference in a new issue