useBrowserLocale
The useBrowserLocale() composable returns the browser locale.
The useBrowserLocale() composable returns the browser locale.
If this composable function is called on client-side, it detects the locale from the value of navigator.languages.
Else on the server side, the locale is detected from the value of accept-language header.
Type
declare function useBrowserLocale(): string | null