♻️ Move i18n config (#1418)

This commit is contained in:
Luke Vella 2024-10-31 08:52:38 +00:00 committed by GitHub
parent a2414ff8ca
commit 641eb13cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 80 additions and 92 deletions

View file

@ -1,6 +1,6 @@
import { Trans as BaseTrans } from "react-i18next";
import { useTranslation } from "@/app/i18n/client";
import { useTranslation } from "@/i18n/client";
import { I18nNamespaces } from "../../declarations/i18next";
@ -11,6 +11,6 @@ export const Trans = (props: {
children?: React.ReactNode;
components?: Record<string, React.ReactElement> | React.ReactElement[];
}) => {
const { t } = useTranslation("app");
const { t } = useTranslation();
return <BaseTrans ns="app" t={t} {...props} />;
};