react-i18next
Advanced tools
Changelog
6.0.2
Changelog
6.0.0
Changelog
5.1.0
import translate from 'react-i18next';
import i18n from './i18n';
translate.setI18n(i18n);
Changelog
5.0.0
{ wait: true }
-> all overrides for the translate hoc now have to be in child react
like { react: { wait: true } }
translateFuncName
as we need that upfront to define childContextTypes)i18next.init({
// ... other options
react: {
wait: false,
withRef: false,
bindI18n: 'languageChanged loaded',
bindStore: 'added removed',
nsMode: 'default'
}
});
translateFuncName
) by using:import translate from 'react-i18next';
translate.setDefaults({
wait: false,
withRef: false,
bindI18n: 'languageChanged loaded',
bindStore: 'added removed',
nsMode: 'default',
translateFuncName: 't'
});