function setLocale(locale) {
    if (i18n.locales.includes(locale)) {
        console.log("Locale changed to " + locale);
        currentLocale = locale;
        return true;
    }
    console.error("Attempted to setLocale to unsupported language: ", locale);
    return false;
}
Set the globally used locale.
Expects a 2 character language code string, one from locales.
@param {string} locale