-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#17280Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
Steps to Reproduce
- Create two locales
one = Locale("en")andtwo = Locale("en", "") - Log both
- See that one is
"en"and two is"en_"
Additional Info and thoughts
This happens on an iOS simulator with the default locale.
I did some research and in this code: https://github.com/flutter/engine/blob/master/lib/ui/window.dart#L511
There should be an additional check if the scriptCode or the _countryCode is an empty string because "en_" is not a valid Unicode BCP47 Locale Identifier
Metadata
Metadata
Assignees
Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.