Want to compare entered text only contain specific language character(Japanese).

0
Hello everyone, I want to do a check if entered text in the text box should only contain specific language character(Japanese). If any  other character entered it should through error “you have entered wrong language”. Does anyone know how to achieve this?
asked
2 answers
2

Hey!

Maybe writing a piece of JS code to detect the language could help
 

let detectingLanguages = browser.i18n.detectLanguage(  text                  // string
)

And then check the returned text against the language codes

answered
1

Hi Rishabh Kandari,

 

you may use the validation in the text box field, change to a custom, and use regular expression to validate the value. 

answered