I'm going to detect user's keyboard language by javascript. I got a input (type of text) which should be filled with Persian characters. So, I need to alarm users change their keyboard language if their language is not Persian.
What I have found is this:
window.navigator.language;
which detects browser's language which is always En-us.
How could I solve that?