Detect text language using JavaScript

Using language API from a third party, we can detect the string or text language in JavaScript. In this Blog Post, I am using Lingvanex for the language detection. Sample JavaScript Code: Output: