Skip to content

Commit

Permalink
Ignore _savedLocale on start when saveLocale is false (aissat#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkhloptov committed Dec 21, 2023
1 parent 8daef36 commit 5404868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/easy_localization_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EasyLocalizationController extends ChangeNotifier {
_fallbackLocale = fallbackLocale;
if (forceLocale != null) {
_locale = forceLocale;
} else if (_savedLocale == null && startLocale != null) {
} else if ((!saveLocale || _savedLocale == null) && startLocale != null) {
_locale = _getFallbackLocale(supportedLocales, startLocale);
EasyLocalization.logger('Start locale loaded ${_locale.toString()}');
}
Expand Down

0 comments on commit 5404868

Please sign in to comment.