mirror of https://github.com/msgbyte/tailchat
chore: add i18n Trans support
parent
7c7e07b640
commit
b20385cfb8
@ -0,0 +1,8 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { Trans as OriginalTrans, TransProps } from 'react-i18next';
|
||||||
|
|
||||||
|
type Props = Omit<TransProps<string>, 't'>;
|
||||||
|
export const Trans: React.FC<Props> = React.memo((props) => {
|
||||||
|
return <OriginalTrans>{props.children}</OriginalTrans>;
|
||||||
|
});
|
||||||
|
Trans.displayName = 'Trans';
|
Loading…
Reference in New Issue