{"id":17696492,"url":"https://github.com/kazupon/unicode-locale-parser","last_synced_at":"2025-09-09T19:15:19.352Z","repository":{"id":216219603,"uuid":"736995856","full_name":"kazupon/unicode-locale-parser","owner":"kazupon","description":"The parser for Unicode Locale Identifiers.","archived":false,"fork":false,"pushed_at":"2024-01-10T14:58:17.000Z","size":127,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T17:20:08.591Z","etag":null,"topics":["i18n","internationalization","locale","parser","unicode-id"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kazupon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"kazupon"}},"created_at":"2023-12-29T13:42:22.000Z","updated_at":"2024-01-09T11:56:28.000Z","dependencies_parsed_at":"2024-01-10T07:51:29.570Z","dependency_job_id":"b0ac6ad2-b97b-4edb-b30a-64653e7155cc","html_url":"https://github.com/kazupon/unicode-locale-parser","commit_stats":null,"previous_names":["kazupon/unicode-locale-parser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazupon%2Funicode-locale-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazupon%2Funicode-locale-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazupon%2Funicode-locale-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazupon%2Funicode-locale-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kazupon","download_url":"https://codeload.github.com/kazupon/unicode-locale-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253877392,"owners_count":21977634,"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":["i18n","internationalization","locale","parser","unicode-id"],"created_at":"2024-10-24T14:44:32.303Z","updated_at":"2025-05-13T04:41:25.106Z","avatar_url":"https://github.com/kazupon.png","language":"Rust","funding_links":["https://github.com/sponsors/kazupon"],"categories":[],"sub_categories":[],"readme":"# unicode-locale-parser\n\n[![CI][ci-src]][ci-href]\n[![crates.io][crate-io-src]][crate-io-href]\n\nThe parser for [Unicode Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_locale_identifier)\n\n\n## ⛏️ Conformance\n\nAll code implements of [Unicode UTS #35 Language and Locale Identifiers](https://unicode.org/reports/tr35/#Identifiers).\n\n\n## 🚀 Usages\n\n```rust\nuse unicode_locale_parser::parse_locale_id;\n\nfn main() {\n    // simple language\n    let locale = parse_locale_id(\"ja-JP\");\n    println!(\"{:#?}\", locale);\n\n    // language \u0026 unicode locale extension\n    let locale = parse_locale_id(\"de-Latn-DE-u-ca-buddhist\");\n    println!(\"{:#?}\", locale);\n}\n```\n\n\n## 🤝 API\n- `parse_locale_id`: parse [`unicode_locale_id`](https://unicode.org/reports/tr35/#unicode_locale_id)\n- `parse_language_id`: parse [`unicode_language_id`](https://unicode.org/reports/tr35/#unicode_language_id)\n- `parse_subdivision_id`: parse [`unicode_subdivision_id`](https://unicode.org/reports/tr35/#unicode_subdivision_id)\n- `parse_measure_unit`: parse [`unicode_measure_unit`](https://unicode.org/reports/tr35/#unicode_measure_unit)\n\n\n## ✅ TODO\n- [ ] [Locale Id Canonicalization](https://unicode.org/reports/tr35/#LocaleId_Canonicalization)\n- [ ] Split some packages with Cargo workspace\n- [ ] Performance\n  - should optimize for string processor with using like [`TinyStr`](https://github.com/zbraniecki/tinystr)\n- [ ] Add more convenient manipulation API for Locale\n- [ ] Some Trait implementation\n  - `Eq`, `Clone`, `Default`, `Hash`, `PartialOrd` and `Ord`\n\n\n## ©️ License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n\u003c!-- Badges --\u003e\n\n[ci-src]: https://github.com/kazupon/unicode-locale-parser/actions/workflows/ci.yml/badge.svg\n[ci-href]: https://github.com/kazupon/unicode-locale-parser/actions/workflows/ci.yml\n[crate-io-src]: https://img.shields.io/crates/v/unicode-locale-parser.svg\n[crate-io-href]: https://crates.io/crates/unicode-locale-parser","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazupon%2Funicode-locale-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazupon%2Funicode-locale-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazupon%2Funicode-locale-parser/lists"}