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

Reexport common types like IntlLangMemoizer and LanguageIdentifier

Open kangalio opened this issue 3 years ago • 2 comments

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

kangalio avatar Jun 11 '22 13:06 kangalio

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.

gregtatum avatar Nov 07 '22 14:11 gregtatum