Browser Language
This library provides a succint way to get the user's preferred language if at all possible.
It will clean up the returned language locale to meet a 2char lowercased iso standard i.e. ES-AR
will become es
.
const DEFAULT = "en";
const locale = getPreferredLanguage(DEFAULT);