Skip to content

Conversation

@tom-anders
Copy link
Collaborator

The removed code in the mjs file assumed that in all languages
0 is followed by singular but that's not true e.g. for German and English.

I tested with French after removing the workaround and
updating localizations: intl.Intl.pluralLogic seems to handle
the plural logic correctly, choosing singular after 0 for French,
but plural for German and English.

Probably at the time that this code was added, intl.Intl.pluralLogic
was not used yet...?

@veloce
Copy link
Contributor

veloce commented Jul 1, 2024

I don't know about pluralLogic, I think it is actually due to me not understanding how pluralisation work in other languages.

Thanks for catching this.

})
}
}
//// add a zero quantity item if it doesn't exist
Copy link
Contributor

Choose a reason for hiding this comment

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

You can delete the block instead of commenting it out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

whoops, fixed

@tom-anders
Copy link
Collaborator Author

I don't know about pluralLogic, I think it is actually due to me not understanding how pluralisation work in other languages.

Thanks for catching this.

Me neither until yesterday :D

@veloce
Copy link
Contributor

veloce commented Jul 1, 2024

@tom-anders can you re-run the script to solve the conflicts? thanks

The removed code in mjs assumed that in all languages
`0` is followed by singular but that's not true e.g. for German and English.

I tested with French after removing the workaround and
updating localizations: `intl.Intl.pluralLogic` seems to handle
the plural logic correctly, choosing singular after 0 for French,
but plural for German and English.

Probably at the time that this code was added, `intl.Intl.pluralLogic`
was not used yet...?
@tom-anders
Copy link
Collaborator Author

@tom-anders can you re-run the script to solve the conflicts? thanks

Done 👍

@veloce
Copy link
Contributor

veloce commented Jul 1, 2024

Thanks!

@veloce veloce merged commit 131a2c6 into lichess-org:main Jul 1, 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.

2 participants