React
Helper hooks
useLocale()
useLocale()
retrieves the user's current language as an ISO-639 language code.
It can be used in the descendants of <GTProvider>
.
useDefaultLocale()
The application's default locale can be accessed in the descendants of <GTProvider>
with the useDefaultLocale()
hook.