projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.1k stars 98 forks source link

Which data providers Fluent crates use? #314

Closed hydroper closed 7 months ago

hydroper commented 1 year ago

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.

zbraniecki commented 1 year ago

I think fluent relies on icu.

What makes you think so?

hydroper commented 1 year ago

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

alerque commented 7 months ago

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.