-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Makepot: Fix translations object handling #43797
Conversation
Size Change: 0 B Total Size: 1.25 MB ℹ️ View Unchanged
|
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.
Thanks for the quick follow-up, @tyxla.
I followed the testing instructions, and everything worked as expected ✅
@WordPress/gutenberg-core - is this something that is worth an early point release? Or should we wait for the regular release cycle? |
Let's wait for the next regular Gutenberg RC release. It was moved to Tuesday next week, but it isn't that far away. |
What?
This fixes #43793.
Why?
In #43479 we broke how we handle translations, incorrectly asserting that they were an array, while they are an object.
How?
This PR fixes that by converting the object to an array before sorting it.
This will need a point release.
Testing Instructions
npm run build
.node_modules/@wordpress/babel-plugin-makepot/index.js
to:
npm run build