
* Migrates Dialog to ui package * Migrates Alert to ui * Migrate Button to ui * UI and lib migrations * Add missing imports * Update Error.tsx
10 lines
166 B
TypeScript
10 lines
166 B
TypeScript
import { useTranslation } from "next-i18next";
|
|
|
|
export const useLocale = () => {
|
|
const { i18n, t } = useTranslation("common");
|
|
|
|
return {
|
|
i18n,
|
|
t,
|
|
};
|
|
};
|