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.
1.0.0
// Read localeconst locale = useLocale(); // 'en-GB'// Construct a number formatter with the correct localeconst formatter = new Intl.NumberFormat(locale); Copy
// Read localeconst locale = useLocale(); // 'en-GB'// Construct a number formatter with the correct localeconst formatter = new Intl.NumberFormat(locale);
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.