Skip to content

v2.6 - Not yet released

More details can be found in the related milestone on GitHub.

Major breaking changes

💥 Renamed functions in utils.locale.js to resolve confusion between getLocale and getAppLocale, which previously led to inconsistent behavior and locale-related issues.

  • Renamed getLocale to getBrowserLocale
  • Renamed getAppLocale to getLocale.
  • Renamed getAppFallbackLocale to getFallbackLocale

TIP

Both getLocaleand getFallbackLocale have a new signature and allows you to retrieve the full locale in the language-region format (e.g., en-GB). For instance, if the locale is en-GB, then

console.log(getLocale()) 
// => en
console.log(getLocale(false)) 
// => en-GB

Major new features

👉