Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muhammadarslannasr opened this issue Sep 13, 2024 · 2 comments

Comments

@muhammadarslannasr
Copy link

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
Copy link

PhuCG commented Sep 27, 2024

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

@muhammadarslannasr
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants