-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
If I visit a LicensePage
via showLicensePage
and turn back to my app, then the app switched from the previous set language to english.
According to pull request flutter/website#3013 we should not override the Intl.defaultLocale
anymore. Instead we shall add the locale to 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:
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
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists