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 Jun 3, 2024
1 parent e5d0f70 commit b8b0b56
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 @@ -42,7 +42,7 @@ class EasyLocalizationController extends ChangeNotifier {
_supportedLocales = supportedLocales;
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 b8b0b56

Please sign in to comment.