projectfluent / python-fluent

Python implementation of Project Fluent
https://projectfluent.org/python-fluent/
Other
210 stars 26 forks source link

Support type parameter (ordinal/cardinal) in NUMBER() select expressions #193

Closed Cimbali closed 7 months ago

Cimbali commented 1 year ago

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.

Cimbali commented 12 months ago

@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?