Skip to content
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

Pick best available locale #1337

Open
Tracked by #506
fujiapple852 opened this issue Oct 4, 2024 · 1 comment · May be fixed by #1388
Open
Tracked by #506

Pick best available locale #1337

fujiapple852 opened this issue Oct 4, 2024 · 1 comment · May be fixed by #1388
Assignees
Labels
enhancement New feature or request i18n tui

Comments

@fujiapple852
Copy link
Owner

fujiapple852 commented Oct 4, 2024

Use sys_locale::get_locales() to get all locale available on the system and compare this list with rust_i18n::available_locales!() to select the best one.

See also https://lib.rs/crates/locale-match

@fujiapple852
Copy link
Owner Author

The locale-match crate is licensed under LGPL, I have asked if it can be dual licensed: pasabanov/locale-match#24

@fujiapple852 fujiapple852 removed this from the 0.12.0 milestone Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request i18n tui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant