Files
homarr/packages/translation/src/client/use-current-locale.ts
T

8 lines
198 B
TypeScript

import { useLocale } from "next-intl";
import { getIntlLocale } from "../config";
export const useCurrentLocale = useLocale;
export const useCurrentIntlLocale = () => getIntlLocale(useLocale());