language

Crates.iolanguage
lib.rslanguage
version0.1.2
sourcesrc
created_at2024-07-15 14:05:59.308044
updated_at2024-07-17 16:21:39.609578
descriptionBCP47 language tags.
homepagehttps://hack.ink/language
repositoryhttps://github.com/hack-ink/language
max_upload_size
id1303892
size84,819
Xavier Lau (AurevoirXavier)

documentation

README

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.

Commit count: 0

cargo fmt