-
-
Notifications
You must be signed in to change notification settings - Fork 82
language code support #81
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
base: master
Are you sure you want to change the base?
Conversation
DanielHilton
commented
Nov 13, 2024
- Adding ISO-639-1 language code support
- Adding tests
✅ Deploy Preview for biter777countries ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@biter777 i'd welcome your feedback on this PR! 😄 |
|
One question. Your additions are related to languages. Except the mention of the country in a few methods. I'm unsure it should be added to this repository. I mean you could have created your own package dedicated to languages, that is could return its own constants. Your code is good, and highly inspired from country one. But, this repository is about countries I'm raising the point because I find strange to add languages (another iso norm) to a repository focused on country one |
|
Also, have you considered existing packages available? Here are the few I found https://github.com/emvi/iso-639-1 Implementing methods to get the languages from a country could be addee in these packages |
This repo concerns itself with facets or properties of countries. This includes TLDs, dialing codes, regions and more. It stands to reason that when dealing with countries, it may be of use to include the language information about the country you are working with. This is not merely an ISO standard repo, as such I think it is relevant to be able to call |
|
Please note, I'm not against the addition. I raised a point to make sure and you replied I like your PR. |
| LanguageTatar LanguageCode = "tt" | ||
| LanguageTwi LanguageCode = "tw" | ||
| LanguageTahitian LanguageCode = "ty" | ||
| LanguageTuvaluan LanguageCode = "tvl" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tvl is not available as an iso-code in iso 639-1, only in iso 639-2 alpha-3
You shouldn't mention here, or use 3 letter code everywhere (better option)
|
I found back this old PR |
That makes two of us. I would like to contribute to this PR as I've encountered a few use cases for this functionality. @ccoVeille Can I receive write access to the repo so I can contribute? Thanks! |
I wish I could, but I'm not a maintainer. I reviewed because I was also interested. |
Ah I didn't realize you weren't a maintainer. Thanks for the message, I'll request write access from one of the maintainers 👍 |
|
i am not sure how often this code is maintained any more. The previous commit was a year ago. @biter777 is this code actively maintained any more? If it isn't, I may simply fork it to implement these changes. |
|
I made the same assumptions |
Yeah biter777 was last active in 05/2024:
I vote to fork it 👍 |
