# language ### BCP47 language tags. [![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Checks](https://github.com/hack-ink/language/actions/workflows/checks.yml/badge.svg?branch=main)](https://github.com/hack-ink/language/actions/workflows/checks.yml) [![Release](https://github.com/hack-ink/language/actions/workflows/release.yml/badge.svg)](https://github.com/hack-ink/language/actions/workflows/release.yml) [![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/hack-ink/language)](https://github.com/hack-ink/language/tags) [![GitHub last commit](https://img.shields.io/github/last-commit/hack-ink/language?color=red&style=plastic)](https://github.com/hack-ink/language)
## Introduction Language tags are defined in [BCP47](http://tools.ietf.org/html/bcp47). An introduction can be found in the article ["Language tags in HTML and XML"](http://www.w3.org/International/articles/language-tags/) 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](https://github.com/hack-ink/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. ## Support Me 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. - **Fiat** - [Ko-fi](https://ko-fi.com/aurevoirxavier) - [爱发电](https://afdian.net/a/AurevoirXavier) - **Crypto** - **Bitcoin** - `bc1pedlrf67ss52md29qqkzr2avma6ghyrt4jx9ecp9457qsl75x247sqcp43c` - **Ethereum** - `0x3e25247CfF03F99a7D83b28F207112234feE73a6` - **Polkadot** - `156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y` Thank you for your support!
#### License Licensed under [GPL-3.0](LICENSE).