cal.pub0.org/packages/lib/hooks/useLocale.ts

11 lines
166 B
TypeScript

import { useTranslation } from "next-i18next";
export const useLocale = () => {
const { i18n, t } = useTranslation("common");
return {
i18n,
t,
};
};