getLocale = lang => {
    if (lang) {
      return convertToLocaleOrNull(lang);
    }
    const configLanguage = (0, _Language.getLanguage)();
    if (configLanguage) {
      return getLocaleInstance(configLanguage);
    }
    return convertToLocaleOrNull((0, _detectNavigatorLanguage.default)());
  }
Returns the locale based on the parameter or configured language Configuration#getLanguage
If no language has been configured - a new locale based on browser language is returned