react-i18next v5.0.0 Release Notes
-
- [BREAKING] we no longer accept wait to be specified on i18next init options like
{ wait: true }
-> all overrides for the translate hoc now have to be in childreact
like{ react: { wait: true } }
- 0️⃣ you now can override all the default options for translate hoc by setting them on i18next.init (excluding
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' } });
- 0️⃣ you now can override all defaults for translate hoc options (including
translateFuncName
) by using:
import translate from 'react-i18next'; translate.setDefaults({ wait: false, withRef: false, bindI18n: 'languageChanged loaded', bindStore: 'added removed', nsMode: 'default', translateFuncName: 't' });
- [BREAKING] we no longer accept wait to be specified on i18next init options like