Enable the new russian translation

This commit is contained in:
Ming Ming 2021-08-23 05:02:58 +08:00
parent 6f29f44c85
commit 26d45b5c32
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,8 @@ final supportedLanguages = {
_AppLanguageEnum.french.index, "français", const Locale("fr")),
_AppLanguageEnum.greek.index:
AppLanguage(_AppLanguageEnum.greek.index, "ελληνικά", const Locale("el")),
_AppLanguageEnum.russian.index: AppLanguage(
_AppLanguageEnum.russian.index, "русский", const Locale("ru")),
_AppLanguageEnum.spanish.index: AppLanguage(
_AppLanguageEnum.spanish.index, "Español", const Locale("es")),
};
@ -35,6 +37,7 @@ enum _AppLanguageEnum {
spanish,
greek,
french,
russian,
}
AppLanguage _getSelectedLanguage(BuildContext context) {

View file

@ -64,6 +64,7 @@ class _MyAppState extends State<MyApp> implements SnackBarHandler {
Locale("el"),
Locale("es"),
Locale("fr"),
Locale("ru"),
],
debugShowCheckedModeBanner: false,
);