@tolgee/format-icu 5.29.6-prerelease.4e3062df.0 → 5.29.6-prerelease.fc7efe8f.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3900,7 +3900,7 @@
3900
3900
  return false;
3901
3901
  }
3902
3902
  }
3903
- function getLocale(language) {
3903
+ function getLanguage(language) {
3904
3904
  if (!locales.get(language)) {
3905
3905
  let localeCandidate = String(language).replace(/[^a-zA-Z]/g, '-');
3906
3906
  while (!isLocaleValid(localeCandidate)) {
@@ -3913,12 +3913,12 @@
3913
3913
  }
3914
3914
  const format = ({ translation, language, params, }) => {
3915
3915
  const ignoreTag = !Object.values(params || {}).find((p) => typeof p === 'function');
3916
- const locale = getLocale(language);
3916
+ const locale = getLanguage(language);
3917
3917
  return new IntlMessageFormat(translation, locale, undefined, {
3918
3918
  ignoreTag,
3919
3919
  }).format(params);
3920
3920
  };
3921
- return Object.freeze({ getLocale, format });
3921
+ return Object.freeze({ getLanguage, format });
3922
3922
  };
3923
3923
 
3924
3924
  const FormatIcu = () => (tolgee, tools) => {