moesaeed / Flutter-Arabic-RTL-Internationalization

40 stars 15 forks source link

Load Selected language #1

Open MaeenBadea opened 3 years ago

MaeenBadea commented 3 years ago

Hi , thanks mohammed for the cool project, this is the only resource i found that did the rtl support with localizations dynamically based on user preference. however , in a real life case you'd want your selected language to stay saved ,, imagine having an english phone , then the user selected arabic language,, next time the user opens the app he expects arabic language to load,, i already settup a shared preference to store the language however i couldn't tell the app how to change direction based on the saved lang.

haroonkhan9426 commented 3 years ago

@MaeenBadea based on your selected local, flutter_localization will automatically update the rtl -> ltr and ltr -> rtl for the supported languages and Arabic is one of them.