function getLocale(locale) {
  const localizeManager = getLocalizeManager();
  return locale || localizeManager?.locale || 'en-GB';
}
Gets the locale to use

@param {string} [locale] Locale to override browser locale
@returns {string}