Open zbraniecki opened 5 years ago
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.
I now released https://crates.io/crates/unic-langid and https://crates.io/crates/unic-locale
As the next step in the effort in #195 I pushed two crates -
unic-langid
andunic-locale
to https://github.com/zbraniecki/unic-localeI'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 fullLocale
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?