rust-unic icon indicating copy to clipboard operation
rust-unic copied to clipboard

Proposal: unic-langid and unic-locale

Open zbraniecki opened this issue 5 years ago • 3 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?

zbraniecki avatar May 14 '19 17:05 zbraniecki

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

Manishearth avatar May 14 '19 19:05 Manishearth

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

zbraniecki avatar May 15 '19 14:05 zbraniecki

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

zbraniecki avatar Jun 16 '19 22:06 zbraniecki