bcp47-picker
v1.0.19
Published
A CustomElement following: https://www.w3.org/International/questions/qa-choosing-language-tags
Downloads
6
Readme
BCP47 Language picker
A language picker which uses the BCP47. It uses the following standards: iso-3166, iso-639, iso-15924 and the un-m49. With this language picker you are sure you are using the right language codes for each specific language. It is even possible to add your own private use language codes such as the ROLV.
The widget uses Bootstrap for styles. If you do not likes this you have the ability to override the CSS classes and provide styles yourself.
You must make sure the CSS of Bootstrap is loaded by yourself.
Demo
Install
npm install bcp47-picker
Details
Datasets (it is possible to use totally different ones):
- https://www.mesaonline.org/language-metadata-table
- https://globalrecordings.net/en/rod
Core datasets and specs:
wooorm/bcp-47
— parse and stringify BCP 47 language tagswooorm/iso-3166
— ISO 3166 codeswooorm/iso-639-2
— ISO 639-2 codeswooorm/iso-639-3
— ISO 639-3 codeswooorm/iso-15924
— ISO 15924 codeswooorm/un-m49
— UN M49 codes