Language Tag (BCP 47) package

I created a simple package aimed at helping you build up language tags. The main use case I built it for was adding the <html lang="en-US"> type tags for an elm-pages app. It’s focused solely on generating the BCP 47 code (doesn’t include any metadata like language name, country name, etc.). I also built it with dead-code elimination in mind, so while it includes a lot of definitions, with Elm’s dead-code elimination it will only include the codes you explicitly reference in the code you ship.

You can see some other places that BCP 47 language tags are used in the readme. Hope some people find some use from it!


Very useful! Thank you very much! Just at the right time :wink:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.