aissat / easy_localization

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

add savedLocale get method for context #675

Closed bbsmartc closed 5 months ago

bbsmartc commented 5 months ago

if context.savedLocale is null, then language option is following system, i can display the option in user selection form.

And after set to another locale by user selection, i use the following code to reset it to following system

                await context.resetLocale();
                context.deleteSaveLocale();