Overview
TheuseLocale hook returns the user’s locale string from the host. It is a convenience wrapper around useHostContext.
Import
Signature
Returns
BCP 47 locale string (e.g.,
'en-US'). Defaults to 'en-US' when unavailable.