Exception messages from JavaScript use the internal localization values. By generating exceptions and comparing against a list of known values, it is possible to detect the browser localization.