Mimino666 / langdetect

Port of Google's language-detection library to Python.
Other
1.71k stars 196 forks source link

Supporting different ISO variations #78

Open danielMicallef opened 3 years ago

danielMicallef commented 3 years ago

Using a library like iso639 it would be very useful for the main functions detect and detect_langs to support output of languages in different (more modern) iso formats like iso-639-3

fizix137 commented 2 years ago

I agree with implementing iso639. I do not see the codes zh-cn, zh-tw in the ISO639 and have to convert them to zh in order to display the language name using the iso-639 package.

KevinLiebergen commented 10 months ago

Then, I guess for now the only solution is making a <iso-code>.split('-')[0]