Skip to content

LicensePage widget forces phone language to English #31

@masewo

Description

@masewo

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

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions