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

Fix dist sort order for localized Values #529

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

danielpgross
Copy link
Collaborator

@danielpgross danielpgross commented Jan 16, 2025

In #528, we discovered that new localized dist output for Values had a different sort order than existing files.

The reason turned out to be that the old implementation sorted localized values according to their English names, while the new one sorted according to the localized names.

This PR changes the sort logic to match the previous behaviour: sorting by the English name, regardless of the localization. It also adds tests to cover this case.

I tested generating dist files for values with the fr locale and the changes were as expected.

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@danielpgross danielpgross marked this pull request as ready for review January 16, 2025 22:53
@danielpgross danielpgross merged commit bee4810 into main Jan 16, 2025
6 checks passed
Copy link
Collaborator Author

Merge activity

  • Jan 16, 6:02 PM EST: A user merged this pull request with Graphite.

@danielpgross danielpgross deleted the 01-16-fix_dist_sort_order_for_localized_value_s branch January 16, 2025 23:02
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.

2 participants