Can you change language of javascript error event messages? -


in our webapp log messages server via window.onerror

however, if client (the web browser) using non english language message in whatever language user has web browser set to.

is there way change somehow?

currently unhelpful messages in multiple languages, hard search similar errors when in 12 different languages, tricky developers need translate english time figure out went wrong.

[edit] adding example here

window.onerror = function (message, url, linenumber, columnnumber) {     // log error here server } 

in example, message in english of time, turns in example danish or swedish depending on client (webbrowser).

short answer: you cannot change it. message descriptive message because of error code. web app should take consideration state (code) of error, not message.

these messages part of browser settings, not have rights change (some of them read-only, all write-protected). mean can render user's browser useless changing program settings javascript (for example, changing language japanese english-only user :).


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -