ContentuseLangA custom hook to detect the user's preferred language.useLang Usage Component.tsximport { useLang } from "~/hooks/useLang"; function Component() { const lang = useLang(); return <p>Current Language: {lang}</p>; } API useLang function useLang(): string; Returns the current language of the user's browser. Returns NameTypeDescriptionlangstringThe current language code (e.g., 'en-US', 'fr', etc.).PrevioususeKeyPressNextuseLocalStorage