mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-19 09:18:01 +02:00
♻️ Move i18n config (#1418)
This commit is contained in:
parent
a2414ff8ca
commit
641eb13cb6
29 changed files with 80 additions and 92 deletions
|
@ -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} />;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue