Browserlocale
retrieves locale from current navigator
object
how do i use it?
As browserlocale
is UMD you can either require it or load it directly into your browser
require/import
; ;// => "en-us" or whatever locale there currently is
global in browser
<script src="some/path/to/browserlocale.js"></script><script>;// => "en-us" or whatever locale there currently is</script>