Situation
Developers record client-side Javascript errors using a services like Sentry, TrackJS, Airbreak, Rollbar, New Relic and many others. These services listen for error events and send the error message and stack trace to a backend so developers can discover bugs and issues their users are having.
Problem
Javascript error messages can be in the language that the browser is set to. It is not helpful for developers to see error messages written in languages we don’t know and it is more difficult to group related errors when the text does not match.
Example from Sentry:
Proposals
Here’s some ideas:
- A way to set the error message language for the page, such as
window.Error.lang='en'
- A method on
Error
object instances to get the error message in the desired language, such aserr.localizedMessage('en')
.
Existing Implementations
I am not aware of any browsers that have this feature at this time.