@talend/react-containers
Version:
Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.
11 lines • 376 B
JavaScript
import i18next from 'i18next';
import { getI18n, setI18n } from 'react-i18next';
export default function getDefaultT() {
return getI18n().t.bind(getI18n());
}
if (!getI18n()) {
// eslint-disable-next-line no-console
console.warn('@talend/react-containers used without i18n host.');
setI18n(i18next.createInstance({}, () => {}));
}
//# sourceMappingURL=translate.js.map