{"id":18454303,"url":"https://github.com/1password/sys-locale","last_synced_at":"2025-10-04T23:38:42.242Z","repository":{"id":37104768,"uuid":"367106577","full_name":"1Password/sys-locale","owner":"1Password","description":"A small and lightweight Rust library to obtain the active locale on the system.","archived":false,"fork":false,"pushed_at":"2024-11-01T18:24:18.000Z","size":44,"stargazers_count":96,"open_issues_count":4,"forks_count":15,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-11T12:17:52.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1Password.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T16:19:17.000Z","updated_at":"2025-04-24T16:02:28.000Z","dependencies_parsed_at":"2024-06-19T01:44:44.222Z","dependency_job_id":"92d023e7-0dd4-470c-beb9-0c21ae588af9","html_url":"https://github.com/1Password/sys-locale","commit_stats":{"total_commits":46,"total_committers":11,"mean_commits":4.181818181818182,"dds":"0.30434782608695654","last_synced_commit":"23104cf2791ccb7b03175f3082acccc3814fd0fe"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fsys-locale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fsys-locale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fsys-locale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fsys-locale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/sys-locale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T08:03:37.076Z","updated_at":"2025-10-04T23:38:37.203Z","avatar_url":"https://github.com/1Password.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sys-locale\n\n[![crates.io version](https://img.shields.io/crates/v/sys-locale.svg)](https://crates.io/crates/sys-locale)\n[![crate documentation](https://docs.rs/sys-locale/badge.svg)](https://docs.rs/sys-locale)\n![MSRV](https://img.shields.io/badge/rustc-1.56+-blue.svg)\n[![crates.io downloads](https://img.shields.io/crates/d/sys-locale.svg)](https://crates.io/crates/sys-locale)\n![CI](https://github.com/1Password/sys-locale/workflows/CI/badge.svg)\n\nA small and lightweight Rust library to get the current active locale on the system.\n\n`sys-locale` is small library to get the current locale set for the system or application with the relevant platform APIs. The library is also `no_std` compatible, relying only on `alloc`, except on Linux and BSD.\n\nPlatform support currently includes:\n- Android\n- iOS (and derivatives such as watchOS, tvOS, and visionOS)\n- macOS\n- Linux, BSD, and other UNIX variations\n- WebAssembly, for the following platforms:\n    - Inside of a web browser (via the `js` feature)\n    - Emscripten (via the `UNIX` backend)\n    Further support for other WASM targets is dependent on upstream\n    support in those target's runtimes and specifications.\n- Windows\n\n```rust\nuse sys_locale::get_locale;\n\nlet locale = get_locale().unwrap_or_else(|| String::from(\"en-US\"));\n\nprintln!(\"The current locale is {}\", locale);\n```\n\n## MSRV\n\nThe Minimum Supported Rust Version is currently 1.56.0. This will be bumped to a newer stable version of Rust when needed.\n\n## Credits\n\nMade with ❤️ by the [1Password](https://1password.com/) team.\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fsys-locale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1password%2Fsys-locale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fsys-locale/lists"}