cal.pub0.org/apps/web/lib/hooks/useLocale.ts

12 lines
232 B
TypeScript
Raw Normal View History

import { useTranslation } from "next-i18next";
/** @deprecated use the one from `@calcom/lib/hooks/useLocale` */
export const useLocale = () => {
const { i18n, t } = useTranslation("common");
return {
i18n,
t,
};
};