nodejs-langs
nodejs-langs copied to clipboard
ISO 639-1/2/3 Language codes with English and local names
Require is outdated
Hello, I was unable to import the package in my javascript code, import {....} from 'langs' I don't know what to write in between the curly braces. Can you help...
Hi, Can you please provide definitions for typescript?
Many languages seem to be missing from this library. For instance, `cmn` for the ISO 639-C version of Mandarin Chinese is missing. `langs.has('3', 'cmn')` does not work.
Adding Swiss German so I can pick my native tongue on our company internal profile. Code see https://en.wikipedia.org/w/index.php?title=ISO_639:gsw
The list of nodejs versions tested against was pretty old and needed updating.
Small improvements. Add it please.
Hi, The purpose of this pull request is to enable a "lazy" match on language names. For instance, some language names in `data.js` contain characters beyond Basic Latin ASCII range...
(Use case insensitive matching when searching)
Using version 2.0.0: ``` console.log(langs.names().find(name => name === "Hawaiian")); ``` outputs `undefined`. ``` console.log(langs.where("2", "haw")); // "haw" is ISO 639-2 for Hawaiian ``` outputs `undefined`. Hawaiian is recognized by ISO...