Skip to content

Commit

Permalink
Merge pull request #2 from gkhloptov/bugfix/430-start-locale_3.0.7
Browse files Browse the repository at this point in the history
Ignore _savedLocale on start when saveLocale is false (aissat#430)
  • Loading branch information
gkhloptov authored Jun 3, 2024
2 parents e5d0f70 + b8b0b56 commit 6574a97
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 6574a97

Please sign in to comment.