mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-18 08:47:24 +02:00
15 lines
471 B
TypeScript
15 lines
471 B
TypeScript
"use client";
|
|
import { Trans as BaseTrans, useTranslation } from "react-i18next";
|
|
|
|
import type { TxKeyPath } from "../i18n/types";
|
|
|
|
export const Trans = (props: {
|
|
i18nKey: TxKeyPath;
|
|
defaults?: string;
|
|
values?: Record<string, string | number | boolean | undefined>;
|
|
children?: React.ReactNode;
|
|
components?: Record<string, React.ReactElement> | React.ReactElement[];
|
|
}) => {
|
|
const { t } = useTranslation();
|
|
return <BaseTrans ns="app" t={t} {...props} />;
|
|
};
|