sys-locale
Small and lightweight library to obtain the active system locale
0.3.2
29M downloads/mo
#1701 most downloaded on crates.io
1Password/sys-locale
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 5 months
Most releases are documented
notes for 7 of 8 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
9 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
9 releases · May 2021 to Nov 2024
2022
2023
2024
2025
2026
Releases
latest 9-
0.3.201 Nov 2024Release notes
Open source →What's Changed
Added
- Support for all other Apple targets, such as watchOS and tvOS by @complexspaces in #38.
- Support for ignoring POSIX modifiers in UNIX locales with them present by @pasabanov in #33.
- Parsing support/recognition may come at a later date.
- Support for returning a list of user locales on Linux/BSD UNIX platforms by @pasabanov in #35.
Fixed
- No longer use
LC_CTYPEwhen determining the locale; the crate now usesLC_MESSAGESin its place by @pasabanov in #35. - Skip empty locale environment variables on UNIX platforms by @complexspaces in #29.
- Corrected types mentioned and improved the public API documentation by @pasabanov in #37.
Changed
- Improved crate download size by excluding unused directories and files by @pasabanov.
- Very slight improvement to locale fetching performance on Windows by @complexspaces in #29.
- Increased MSRV to Rust 1.56, which is 3 years old as of this release by @complexspaces.
New Contributors
- @pasabanov made their first contribution in #30
Full Changelog: v0.3.1...v0.3.2
-
0.3.127 Aug 2023Release notes
Open source →Added
- Added support for getting a list of user locales in their preferred order via
get_locales.- Additional locales are currently supported on iOS, macOS, WASM, and Windows. Other platforms will
only return a single locale likeget_localedoes.
- Additional locales are currently supported on iOS, macOS, WASM, and Windows. Other platforms will
Changed
- Removed
windows-sysdependency
- Added support for getting a list of user locales in their preferred order via
-
0.3.004 Apr 2023Release notes
Open source →Changed
- The crate now only uses
wasm-bindgenwhen targeting WebAssembly on the web.
Use the newjsfeature to target the web.
Fixed
- The crate now compiles for unsupported platforms.
- Cleaned up typos and grammar in README.
- The crate now only uses
-
0.2.407 Mar 2023Release notes
Open source →Changed
- Removed dependency on the
winapicrate in favor ofwindows-sys, following more of the wider ecosystem.
- Removed dependency on the
-
0.2.306 Nov 2022Release notes
Open source →Fixed
- Re-release 0.2.2 and correctly maintain
no_stdcompatibility on Apple targets.
- Re-release 0.2.2 and correctly maintain
-
0.2.206 Nov 2022 withdrawnRelease notes
Open source →Changed
- The Apple backend has been rewritten in pure Rust instead of Objective-C.
Fixed
- The locale returned on UNIX systems is now always a correctly formatted BCP-47 tag.
-
0.2.117 Jun 2022Release notes
Open source →Added
- The crate now supports being used via WASM in a WebWorker environment.
-
0.2.001 Mar 2022Release notes
Open source →Fixed
- Fixed a soundness issue on Linux and BSDs by querying the environment directly instead of using libc setlocale. The libc setlocale is not safe for use in a multi-threaded context.
Changed
- No longer
no_stdon Linux and BSDs
-
0.1.013 May 2021Nothing published for this version