Crates.io | language |
lib.rs | language |
version | 0.1.2 |
source | src |
created_at | 2024-07-15 14:05:59.308044 |
updated_at | 2024-07-17 16:21:39.609578 |
description | BCP47 language tags. |
homepage | https://hack.ink/language |
repository | https://github.com/hack-ink/language |
max_upload_size | |
id | 1303892 |
size | 84,819 |
Language tags are defined in BCP47.
An introduction can be found in the article "Language tags in HTML and XML" by the W3C.
These tags are commonly used in HTML and in the Content-Language
and Accept-Language
header fields of HTTP.
I primarily use this in my AiR project to support multiple languages.
There are already many similar crates, but none provide as_tag
, from_tag
, as_str
, and as_local
at the same time. So, I implemented this myself.
If you find this project helpful and would like to support its development, you can buy me a coffee!
Your support is greatly appreciated and motivates me to keep improving this project.
bc1pedlrf67ss52md29qqkzr2avma6ghyrt4jx9ecp9457qsl75x247sqcp43c
0x3e25247CfF03F99a7D83b28F207112234feE73a6
156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y
Thank you for your support!
Licensed under GPL-3.0.