@hmiproject/helio-sdk
    Preparing search index...

    Function useLocale

    • Returns the currently active application locale.

      Note that most HELIO components are already locale-aware and will automatically use the locale the user has selected.

      Returns string

      1.0.0

      // Read locale
      const locale = useLocale(); // 'en-GB'

      // Construct a number formatter with the correct locale
      const formatter = new Intl.NumberFormat(locale);