You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
287 B

3 years ago
import { useTranslation } from './useTranslation';
export function Translation(props) {
const { ns, children, ...options } = props;
const [t, i18n, ready] = useTranslation(ns, options);
return children(
t,
{
i18n,
lng: i18n.language,
},
ready,
);
}