Projektstart
This commit is contained in:
15
frontend/node_modules/react-i18next/src/Translation.js
generated
vendored
Normal file
15
frontend/node_modules/react-i18next/src/Translation.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useTranslation } from './useTranslation.js';
|
||||
|
||||
export function Translation(props) {
|
||||
const { ns, children, ...options } = props;
|
||||
const [t, i18n, ready] = useTranslation(ns, options);
|
||||
|
||||
return children(
|
||||
t,
|
||||
{
|
||||
i18n,
|
||||
lng: i18n.language,
|
||||
},
|
||||
ready,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user