
* Migrates Dialog to ui package * Migrates Alert to ui * Migrate Button to ui * UI and lib migrations * Add missing imports * Update Error.tsx
11 lines
232 B
TypeScript
11 lines
232 B
TypeScript
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,
|
|
};
|
|
};
|