-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to pick up the current locale from the OS? #12
Comments
This crate is currently aiming to handle language negotiation operations. Pulling various locale fallback lists from the OS is not in scope. (I believe such a crate would be useful tho!) |
Is it not in scope as you personally do not wish to maintain it, or see it as antithetical to the purposes of this crate? I ask because I have implemented this for macOS and Windows, and would be happy to take up the work necessary to keep it maintained. 😄 |
The latter. Crate that will interact with the underlying OS will require dependencies and specific kind of testing and maintenance to handle, likely growing, number of OSes to support. |
I'd like to point out that there's an effort now to develop a set of components similar to ICU4C using Rust, and the crates we have here would likely be part of that - https://github.com/i18n-concept/rust-discuss/issues In such a case, any OS operations would be managed by a component like |
A I'd like to contribute to this sooner than later, so what do you propose that I do? 😄 |
File an issue in https://github.com/i18n-concept/rust-discuss/issues and start a conversation about the scope of such crate. The |
Is there a way to use this (or an adjacent crate) to grab a locale representing the current OS context? I assume this would require different OS backends (at least POSIX and Windows probably).
Edit: Having had a look around it seems a few crates are implementing the functionality, often only on certain platforms.
The text was updated successfully, but these errors were encountered: