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.
|
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,
|
|
);
|
|
}
|