Open masewo opened 4 years ago
If I visit a LicensePage via showLicensePage and turn back to my app, then the app switched from the previous set language to english.
LicensePage
showLicensePage
According to pull request https://github.com/flutter/website/pull/3013 we should not override the Intl.defaultLocale anymore. Instead we shall add the locale to Intl.message.
Intl.defaultLocale
Intl.message
Whoever needs or wants to modify the l10n.dart file by hand (e. g. before building the app in a pipeline), here the steps I do:
l10n.dart
sed -i -e "s/^.*Intl.defaultLocale = localeName;.*$//g" lib/generated/l10n.dart sed -i -e "s/S.current = S();/S.current = S(localeName);/g" lib/generated/l10n.dart sed -i -e "s/S();/S(this.localeName); String localeName;/" lib/generated/l10n.dart sed -i -e "s/args: \[\],/args: \[\], locale: localeName/g" lib/generated/l10n.dart
Hi @masewo Yes, we already plan this for one of upcoming updates, as discussed in https://github.com/localizely/flutter-intl-intellij/issues/26
If I visit a
LicensePage
viashowLicensePage
and turn back to my app, then the app switched from the previous set language to english.According to pull request https://github.com/flutter/website/pull/3013 we should not override the
Intl.defaultLocale
anymore. Instead we shall add the locale toIntl.message
.Whoever needs or wants to modify the
l10n.dart
file by hand (e. g. before building the app in a pipeline), here the steps I do: