fluent-rs icon indicating copy to clipboard operation
fluent-rs copied to clipboard

Which data providers Fluent crates use?

Open hydroper opened this issue 2 years ago • 2 comments

I think fluent relies on icu. Several of their constructors require a data provider. Do you simply use icu_testdata or have you passed through the data management process? If so, how can I reuse it? Or am I wrong about the use of icu? I'm asking because it could be an indirect dependency too.

Note, I think this because:

What makes you think so?

@zbraniecki The built-in functions: https://projectfluent.org/fluent/guide/functions.html Inclusively it implements something like Intl.DateTimeFormat.

hydroper avatar Mar 08 '23 18:03 hydroper

I think fluent relies on icu.

What makes you think so?

zbraniecki avatar Mar 08 '23 19:03 zbraniecki

@zbraniecki The built-in functions: https://projectfluent.org/fluent/guide/functions.html Inclusively it implements something like Intl.DateTimeFormat.

hydroper avatar Mar 08 '23 19:03 hydroper

The build in functions you are referencing from the guide are not (to date) even implemented at all in the fluent-rs series of crates. There is current work in progress both and some discussion about specifics that you could jump into if you are interested. See #353 for the NUMBER() builtin and #181 for DATETIME(). Also note #269 where this is discussion and action towards using icu4x.

alerque avatar May 06 '24 10:05 alerque