import { useTranslation } from "react-i18next"; /** Whether a legal page renders its Hungarian body (see LegalLayout). */ export function useHungarian(): boolean { const { i18n } = useTranslation(); return i18n.language?.startsWith("hu") ?? false; }