Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[locker] Add language support for 26 languages

AmanRajSinghMourya9b85d3fdb729
diff --git a/mobile/apps/locker/lib/core/locale.dart b/mobile/apps/locker/lib/core/locale.dart
index 7fc71a1eda..bead01215d 100644
--- a/mobile/apps/locker/lib/core/locale.dart
+++ b/mobile/apps/locker/lib/core/locale.dart
@@ -1,11 +1,36 @@
import 'package:flutter/cupertino.dart';
import 'package:shared_preferences/shared_preferences.dart';
-// list of locales which are enabled for auth app.
+// list of locales which are enabled for locker app.
// Add more language to the list only when at least 90% of the strings are
// translated in the corresponding language.
const List<Locale> appSupportedLocales = <Locale>[
+ Locale('ar'),
+ Locale('cs'),
+ Locale('da'),
+ Locale('de'),
+ Locale('el'),
Locale('en'),
+ Locale('es'),
+ Locale('fi'),
+ Locale('fr'),
+ Locale('hi'),
+ Locale('hu'),
+ Locale('it'),
+ Locale('ja'),
+ Locale('ko'),
+ Locale('nl'),
+ Locale('pl'),
+ Locale('pt'),
+ Locale('ro'),
+ Locale('ru'),
+ Locale('sv'),
+ Locale('tr'),
+ Locale('uk'),
+ Locale('vi'),
+ Locale('zh'),
+ Locale('zh', 'CN'),
+ Locale('zh', 'TW'),
];
Locale? autoDetectedLocale;