-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Only 3 letter code ISO 639 supported #55
Comments
Aren't 639-3 more or less dialects? I always used "locales" before like en_US etc which is common, those are never 3 characters long. So it gets a lot more complex if 639-3 is used instead of 639-1. I understand your reasoning why it is complex to do as the current version is created for 639-3, but I would prefer a way to easily fix this in your code instead of forking the code. In the end 639-1 can be seen as a lower resolution of the 639-3 table? So it should be possible to go from 639-3 to 639-1. Other way wouldn't be possible. Would it be ok to just introduce a new function inside franc that in worst case, uses a different lib to guess the 639-1 version? I think it makes sense as there are already multiple people that raised the question before :-) |
We could use the following library: https://github.com/adlawson/nodejs-langs Would translate ISO 639-3 to 639-1 |
No.
Those are called BCP-47 tags, in this case with a language part (
The way to ease this pain is by continuing work on GH-30. Feel free to start work on that if you’d like this feature.
Correct! Similar to ASCII vs Unicode! |
As I and a lot of people use ISO 639-1 as a default way to define languages, it would be handy if there was an option to select this.
The text was updated successfully, but these errors were encountered: