open-i18n / rust-unic

UNIC: Unicode and Internationalization Crates for Rust

Home Page:https://crates.io/crates/unic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal: unic-langid and unic-locale

zbraniecki opened this issue · comments

As the next step in the effort in #195 I pushed two crates - unic-langid and unic-locale to https://github.com/zbraniecki/unic-locale

I'm not going to release it yet, until we decide whether those crates should be part of unic or should be standalone.

I separated out the LanguageIdentifier because in many operations full Locale is not necessary or even useful, so I wanted to keep those two levels of abstraction.

There are some open questions like whether it should be structs or traits etc. and of course there's no validity checks yet, only well-fromedness. In fact, I don't pull any data, even stuff like RTL yet, but this can be easily added.

@behnam , @Manishearth - thoughts?

I'd like to see these things become a part of unic, yes

@bcmyers - any chance you may have feedback on this? I believe this should become an entry point for your num_format crate.