Skip to content

hack-ink/language

Repository files navigation

language

BCP47 language tags.

License Checks Release GitHub tag (latest by date) GitHub last commit

Introduction

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.

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
  • Crypto
    • Bitcoin
      • bc1pedlrf67ss52md29qqkzr2avma6ghyrt4jx9ecp9457qsl75x247sqcp43c
    • Ethereum
      • 0x3e25247CfF03F99a7D83b28F207112234feE73a6
    • Polkadot
      • 156HGo9setPcU2qhFMVWLkcmtCEGySLwNqa3DaEiYSWtte4Y

Thank you for your support!

License

Licensed under GPL-3.0.