ColdFusion wrapper for kju2-forked "Language Detection Library for Java".
Install the JAR file to your existing JAVA path and restart the ColdFusion server.
- Download and build JAR file manually from https://github.com/kju2/language-detector
- Download pre-compiled JAR from MvnRepository. https://mvnrepository.com/artifact/io.github.kju2.languagedetector/language-detector/1.0.5
- Use included JAR file (v1.0.5)
Instantiate the component:
var languageDetector = new languageDetector();
Returns a text string with the language detected.
languageDetector("Quel est votre nom?") // CATALAN (French?)
languageDetector("Wie heißen Sie?") // GERMAN
languageDetector("¿Cuál es tu nombre?") // SPANISH
languageDetector("Πως σε λένε?") // GREEK
languageDetector("آپ کا نام کیا ہے؟ ") // URDU
languageDetector("Как Вас зовут?") // BELARUSIAN (Russian)
languageDetector("คุณชื่ออะไร?") // THAI
- AFRIKAANS (af)
- ALBANIAN (sq)
- ARABIC (ar)
- ARAGONESE (an)
- BASQUE (eu)
- BELARUSIAN (be)
- BENGALI (bn)
- BRETON (br)
- BULGARIAN (bg)
- CATALAN (ca)
- CENTRAL_KHMER (km)
- CHINESE (zh)
- CROATIAN (hr)
- CZECH (cs)
- DANISH (da)
- DUTCH (nl)
- ENGLISH (en)
- ESTONIAN (et)
- FINNISH (fi)
- FRENCH (fr)
- GALICIAN (gl)
- GERMAN (de)
- GREEK (el)
- GUJARATI (gu)
- HAITIAN (ht)
- HEBREW (he)
- HINDI (hi)
- HUNGARIAN (hu)
- ICELANDIC (is)
- INDONESIAN (id)
- IRISH (ga)
- ITALIAN (it)
- JAPANESE (ja)
- KANNADA (kn)
- KOREAN (ko)
- LATVIAN (lv)
- LITHUANIAN (lt)
- MACEDONIAN (mk)
- MALAY (ms)
- MALAYALAM (ml)
- MALTESE (mt)
- MARATHI (mr)
- NEPALI (ne)
- NORWEGIAN (no)
- OCCITAN (oc)
- PANJABI (pa)
- PERSIAN (fa)
- POLISH (pl)
- PORTUGUESE (pt)
- ROMANIAN (ro)
- RUSSIAN (ru)
- SERBIAN (sr)
- SLOVAK (sk)
- SLOVENIAN (sl)
- SOMALI (so)
- SPANISH (es)
- SWAHILI (sw)
- SWEDISH (sv)
- TAGALOG (tl)
- TAMIL (ta)
- TELUGU (te)
- THAI (th)
- TURKISH (tr)
- UKRAINIAN (uk)
- URDU (ur)
- VIETNAMESE (vi)
- WELSH (cy)
- YIDDISH (yi)