guessLanguage.js icon indicating copy to clipboard operation
guessLanguage.js copied to clipboard

Lack a list of supported languages in the README file

Open clemsos opened this issue 13 years ago • 2 comments

It will be useful to have such a list at a glance. Thank you very much for the good job :)

clemsos avatar Oct 22 '12 14:10 clemsos

At quick glance of _languageData.js, the models object contains, according to Object.keys(models).length 62 languages. I dumped it through my language code database. Klingon was probably the biggest out of the blue appearance. Awesome that this supports that. I'll submit a pull request on the ReadMe.md file shortly, and a slight change to models to make it language tag parsable on the portuguese codes.

Afrikaans Arabic Azerbaijani Bulgarian Catalan, Valencian Cebuano Czech Welsh Danish German English Spanish, Castilian Estonian Basque Persian Finnish French Hausa Hawaiian Hindi Croatian Hungarian Indonesian Icelandic Italian Kazakh Kirghiz, Kyrgyz Latin Lithuanian Latvian Macedonian Mongolian Norwegian Bokmål Nepali Dutch, Flemish South Ndebele Pedi, Northern Sotho, Sepedi Polish Pushto, Pashto Portuguese Portuguese (Brazilian) Portuguese (Portugal) Romanian, Moldavian, Moldovan Russian Slovak Slovenian Somali Albanian Serbian Swati Southern Sotho Swedish Swahili (macrolanguage) Tagalog Klingon, tlhIngan-Hol Tswana Turkish Tsonga Ukrainian Urdu Uzbek Venda Vietnamese Xhosa Zulu

PlNG avatar Jun 14 '13 01:06 PlNG

Actually, the library supports many more languages (~100). A full list of languages will be added to the README via pull request https://github.com/richtr/guessLanguage.js/pull/5.

Thanks @PING!

richtr avatar Jun 14 '13 04:06 richtr