Browse Source

fix: put back Russian language

set EasyLocalization to not save language locally.
MikeWallaceDev 3 years ago
parent
commit
1796d0a448
1 changed files with 5 additions and 2 deletions
  1. 5 2
      frontend/app_flowy/lib/startup/tasks/application_widget.dart

+ 5 - 2
frontend/app_flowy/lib/startup/tasks/application_widget.dart

@@ -29,13 +29,16 @@ class AppWidgetTask extends LaunchTask {
         runApp(
         runApp(
           EasyLocalization(
           EasyLocalization(
             supportedLocales: const [
             supportedLocales: const [
+              // In alphabetical order
               Locale('en'),
               Locale('en'),
-              Locale('zh', 'CN'),
-              Locale('it', 'IT'),
               Locale('fr', 'CA'),
               Locale('fr', 'CA'),
+              Locale('it', 'IT'),
+              Locale('ru', 'RU'),
+              Locale('zh', 'CN'),
             ],
             ],
             path: 'assets/translations',
             path: 'assets/translations',
             fallbackLocale: const Locale('en'),
             fallbackLocale: const Locale('en'),
+            saveLocale: false,
             child: app,
             child: app,
           ),
           ),
         );
         );