LocaleIdentifier comparisons are case sensitive: en-us != en-US

The LocaleIdentifier comparisons are performed case-sensitive. Means if you have a LocaleIdentifier en-us and en-US, the Localization system thinks they’re different locales.

This is prone to error and I think if the Localization system would perform these checks with OrdinalIgnoreCase it makes the system better.

Oh nice catch :slight_smile:

1 Like