mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-19 09:18:01 +02:00
🧑💻 Update i18next types (#1453)
This commit is contained in:
parent
ca207a913e
commit
40df1ff9da
7 changed files with 17 additions and 30 deletions
|
@ -1,11 +1,9 @@
|
|||
import { Trans as BaseTrans } from "react-i18next";
|
||||
import { Trans as BaseTrans, useTranslation } from "react-i18next";
|
||||
|
||||
import { useTranslation } from "@/i18n/client";
|
||||
|
||||
import type { I18nNamespaces } from "../../declarations/i18next";
|
||||
import type { TxKeyPath } from "../i18n/types";
|
||||
|
||||
export const Trans = (props: {
|
||||
i18nKey: keyof I18nNamespaces["app"];
|
||||
i18nKey: TxKeyPath;
|
||||
defaults?: string;
|
||||
values?: Record<string, string | number | boolean | undefined>;
|
||||
children?: React.ReactNode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue