1Password / sys-locale

A small and lightweight Rust library to obtain the active locale on the system.
Apache License 2.0
81 stars 15 forks source link

Fix implementation for Linux #6

Closed Kijewski closed 2 years ago

Kijewski commented 2 years ago

Please refer to issue #3 which explains the problem very well.

In Linux sys_locale::get_locale() returns e.g. "de_DE" for German as spoken in Germany, even though BCP-47's systax mandates that it should be "de-DE".

complexspaces commented 2 years ago

Hey there @Kijewski, thanks for the PR. This looks good to me, but do you mind rebasing on main to pickup the CI fixes? After that, this should be ready to merge.

Kijewski commented 2 years ago

Rebased.