open-i18n / rust-unic

UNIC: Unicode and Internationalization Crates for Rust
https://crates.io/crates/unic
Other
234 stars 24 forks source link

Proposal: unic-langid and unic-locale #266

Open zbraniecki opened 5 years ago

zbraniecki commented 5 years ago

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?

Manishearth commented 5 years ago

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

zbraniecki commented 5 years ago

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

zbraniecki commented 5 years ago

I now released https://crates.io/crates/unic-langid and https://crates.io/crates/unic-locale