Add translation values to activity log output

This commit is contained in:
DaneEveritt 2022-06-11 14:52:41 -04:00
parent 06427f8d13
commit 4d30cc9e7e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,14 @@
import React from 'react';
import { Trans, TransProps, useTranslation } from 'react-i18next';
type Props = Omit<TransProps, 't'>;
export default ({ ns, children, ...props }: Props) => {
const { t } = useTranslation(ns);
return (
<Trans t={t} {...props}>
{children}
</Trans>
);
};