getOsLocalesCrossPlatform
A cross platform alternative to get locales used on the platform. Works on Node, Electron, NW.js and Browsers
This script is largely based on https://github.com/sindresorhus/os-locale
What I did is compile everything on a single script and add browser compatibility.
The scripts exports only one function to the global scope