Use navigator.language for badge localization

See #8827
Style changes.