aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
928 stars 336 forks source link

How to change Direction when language change from English to Arabic or from Arabic to English #712

Open muhammadarslannasr opened 2 months ago

muhammadarslannasr commented 2 months ago

How to change Direction when language change from English to Arabic or from Arabic to English, I am not getting any change when language change from arabic to english or english to arabic don't know why.

I am using easy_localization: ^3.0.7 with Flutter sdk version 3.22.2

PhuCG commented 2 months ago

when you change locale does the language change, show your code?

muhammadarslannasr commented 1 month ago

No actucally not change when change from english to arabic everything remains as its is.

runApp( MultiProvider( providers: [ ChangeNotifierProvider(create: (_) => LanguagesVm()), ChangeNotifierProvider(create: (_) => MainVm()), ], child: EasyLocalization( key: const ValueKey('easyLocalization'), supportedLocales: [ AppLocalizations.engLocale, AppLocalizations.arabicLocale, AppLocalizations.urduLocale, AppLocalizations.turkeyLocale, AppLocalizations.hindiLocale, AppLocalizations.bengaliLocale, ], path: AppLocalizations.translationFilePath, fallbackLocale: AppLocalizations.engLocale, startLocale: AppLocalizations.engLocale, child: const MyApp(), ), ), );

when you change locale does the language change, show your code?