Skip to content

Lift locales from extensions to top level#14

Merged
bitjson merged 1 commit intomasterfrom
locales
Jan 31, 2024
Merged

Lift locales from extensions to top level#14
bitjson merged 1 commit intomasterfrom
locales

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