Import this in your client-side component
MyComponent.tsx
import { useBrowserLanguage } from "react-amazing-hooks";
API
Api | Description | Type | Return Type | Example |
---|---|---|---|---|
useBrowserLanguage | A hook to get the user's browser language, with options for formatting. | TextFormat | string | 'lowercase' |
Check the TextFormat
in the 'Types' tab.