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

Support list format fallbacks #1099

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Support list format fallbacks #1099

merged 3 commits into from
Jul 15, 2024

Conversation

akx
Copy link
Member

@akx akx commented Jul 11, 2024

Fixes #1098 by fixing one part of #1076.

As noted in the TODO comment, this isn't the optimal way to implement it, but a better way could be swapped in later.

@akx
Copy link
Member Author

akx commented Jul 12, 2024

Cc @Vexed01 for reporting #1098.

Cc @tomasr8 if you feel like taking a quick look!

Copy link
Contributor

@tomasr8 tomasr8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :) Full branch and statement coverage for babel.lists as well

As an aside, I was looking for some description for how the list patterns are defined in the XML and I only found this short explanation. I assume the <listPattern> with no type is the standard one?

@akx
Copy link
Member Author

akx commented Jul 15, 2024

As an aside, I was looking for some description for how the list patterns are defined in the XML and I only found this short explanation. I assume the <listPattern> with no type is the standard one?

It's (vaguely) in the TR35 doc:

"type attribute value": standard (or no type)

@akx akx merged commit 7394c37 into master Jul 15, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

babel.lists.format_list with style="unit" errors on non-English languages
2 participants