Overview
TheuseLocale hook returns the user’s current locale (language and region).
Import
Signature
Returns
A locale string (e.g.,'en-US', 'fr-FR', 'ja-JP'), or null if not available.
Get the user’s locale
useLocale hook returns the user’s current locale (language and region).
'en-US', 'fr-FR', 'ja-JP'), or null if not available.