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 type parameter (ordinal/cardinal) in NUMBER() select expressions #193

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

Cimbali
Copy link
Contributor

@Cimbali Cimbali commented Oct 18, 2023

The type option is simply ignored outside of a select expression, and allows to select based on CLDR plural categories for ordinals (which differ from normal plurals aka cardinal numbers).

This is as per (part* of) the docs, and per javascript implementation, see projectfluent/fluent#259 -- I haven’t found any definition of NUMBER() in the actual spec. Fixes #192.

* Here yes but not here.

The type option is simply ignored outside of a select expression, and
allows to select based on CLDR plural categories for ordinals (which
differ from normal plurals aka cardinal numbers).

This is as per (part of) the docs, and per javascript implementation,
see projectfluent/fluent#259 -- I haven’t found any definition of
NUMBER() in the spec.
@Cimbali Cimbali changed the title Support type parameter (ordinal/cardinal) in NUMBER() Support type parameter (ordinal/cardinal) in NUMBER() select expressions Oct 20, 2023
@Cimbali
Copy link
Contributor Author

Cimbali commented Oct 25, 2023

@eemeli you seem to be main committer on this repo (at least recently) and have knowledge of the topic as you opened the linked docs issue, would you have time to take a look?

@eemeli eemeli merged commit f9a76cb into projectfluent:main Mar 10, 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.

Ordinals do not work
2 participants