Open kangalio opened 2 years ago
Seems reasonable enough to me to export the IntlLangMemoizer
since it's part of this repo. I'm less sure of the LanguageIdentifier
, especially since you can opt into macro usage.
LangIdentifier
in particular is a bit mixed up because it turns up in inic-langid
and fluent-langneg
as well, and the implementations are not currently in sync. That sync issue is separate for this (c.f. fluent-langneg-rs#26 and I also agree with Greg that it may not make sense to export it.
Contributions still welcome for IntlLangMemoizer
.
It's slightly annoying to have to depend on third-party crates just to be able to interact with fluent-rs itself.
So far in my journey of exploring fluent, I have to depend on intl-memoizer to be able to spell out the
fluent::bundle::FluentBundle<fluent::FluentResource, intl_memoizer::concurrent::IntlLangMemoizer>
type. Though I was able to work around depending on unic_langid by creating a LanguageIdentifier via.parse()
instead