Skip to content
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

Lift locales from extensions to top level #14

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Lift locales from extensions to top level #14

merged 1 commit into from
Jan 31, 2024

Conversation

bitjson
Copy link
Owner

@bitjson bitjson commented Jan 31, 2024

Thank you to @georgedonnelly for noticing that the locales extension now creates validation errors following the stricter limits we placed on extensions in v2!

This PR pulls the locales field out of extensions to be a top-level registry property. There's a lot of benefit to be had in standardizing localization, and a top level field lets us 1) apply better validation by default, and 2) avoid needing to manipulate the expected shape of the locales object to fit within the two-level restriction on extensions.

@bitjson
Copy link
Owner Author

bitjson commented Jan 31, 2024

I'm going to move ahead with merging this as part of the v2.1 draft, but if anyone has comments on this change, please add them here.

@bitjson bitjson merged commit 0e8417c into master Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant