I am new to web develop and now developing an internal use website by js for different languages user, Its worked great for detect English character input and Chinese character input . and I want further more to detect traditional and simplified Chinese . Any idea to done this task ?
below is my code to detect chinese and english
if (string.match(/^[A-Za-z]*$/)) {
//....English
} else if (string.match(/[\u3400-\u9FBF]/)) {
//....Chinese
} else {
}