From 1bde176612bb0c62a1782c78230875c9732361f0 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Wed, 1 Feb 2023 01:57:55 +0300 Subject: [PATCH] feat(translations): Activate support for some languages Languages being activated are: - Ukrainian - German - French - Spanish - Czech - Polish - Thai Translation which are not finished will fall back to English. --- lib/config/localization.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/config/localization.dart b/lib/config/localization.dart index 297928ed..fb50b58e 100644 --- a/lib/config/localization.dart +++ b/lib/config/localization.dart @@ -10,7 +10,17 @@ class Localization extends StatelessWidget { final Widget? child; @override Widget build(final BuildContext context) => EasyLocalization( - supportedLocales: const [Locale('ru'), Locale('en')], + supportedLocales: const [ + Locale('ru'), + Locale('en'), + Locale('uk'), + Locale('de'), + Locale('fr'), + Locale('es'), + Locale('cs'), + Locale('pl'), + Locale('th'), + ], path: 'assets/translations', fallbackLocale: const Locale('en'), useFallbackTranslations: true,