Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@GaryQian
Copy link
Contributor

Due to legacy support, we allow empty string as countryCode via the original constructor.

We have since added the fromSubtags constructor that added scriptCode and we no longer recommend emptyString as countryCode.

This changes it such that empty string is treated the same as null in terms of equality. This allows improved backwards compatibility and makes two functionally identical locales also compare as equal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants