-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Add maybeLocaleOf to Localizations #68911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add maybeLocaleOf to Localizations #68911
Conversation
47919b2
to
5da5aae
Compare
This one is going to take some migration of the customer tests, since the svg package uses I think this will need happen in three parts: one that introduces |
This change will include the first of those three changes. |
c5ee7fe
to
cf58079
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
20bb8b3
to
6b66c1b
Compare
6b66c1b
to
2386729
Compare
This pull request is not suitable for automatic merging in its current state.
|
2386729
to
404bc85
Compare
Description
This removes the
nullOk
parameter fromLocalizations.localeOf
, and createsLocalizations.maybeLocaleOf
.Localizations.localeOf
now returns a non-nullable value, and theLocalizations.maybeLocaleOf
returns a nullable value.Related Issues
Tests
maybeOf
.Breaking Change