Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing many languages #13

Open
garyking opened this issue May 20, 2018 · 5 comments
Open

Missing many languages #13

garyking opened this issue May 20, 2018 · 5 comments

Comments

@garyking
Copy link

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.

@ChallengeSoft
Copy link

I have the same problem. Most of the languages I've tried (languages that are not in list 1) are not recognized.

@mohsen1
Copy link

mohsen1 commented Apr 8, 2019

Here is a complete list of language
https://iso639-3.sil.org/code_tables/639/data

@AlmogCohen
Copy link

Same here...I guess the repo is unmaintained :( langs.has('3', 'arb') returns false as well

@AlmogCohen
Copy link

I've found a solution to the missing 639-3 codes missing from the library by combining it with another one - iso-639-3-to-1. Seems like most of the issue with this package is the missing support for 3 letter codes.

  1. Install the other package:
    npm install --save iso-639-3-to-1
  2. In your code:
const convert3To1 = require('iso-639-3-to-1')
langs.where("1", convert3To1(threeLetterCodecode)

That will work both for cmn and arb that were not working while using the lang.where('3', code). Seemed to work for all the languages I needed. Good luck!

@zordsdavini
Copy link

There are thousands languages in the world. Why not to use SIL standard? I miss Samogitian language (sgs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants