All Versions
223
Latest Version
Avg Release Cycle
12 days
Latest Release
-

Changelog History
Page 17

  • v7.0.0 Changes

    • [BREAKING] As with react 16 you can return multiple elements from render - based on that we do not need to return a wrapper any longer from Trans component.

    0️⃣ Starting with v7.0.0 Trans component per default won't add a parent div around content passed as children. It will just return it's children.

    You still got the option to set a parent if you prefer content being wrapped.

    0️⃣ If you prefer wrapping for all your Trans components (or for backwards compatibility) you can set option react.defaultTransParent to an element on i18next init.

  • v6.2.0 Changes

    • ➕ adds hashTransKey function for custom key generation in case of not passing a key to Trans component and not like having the source value as key
  • v6.1.0 Changes

    • pre-check namespaces to avoid unnecessary initial null render PR336
  • v6.0.6 Changes

    • ✂ remove PureComponent from Trans
  • v6.0.5 Changes

    • 🛠 fixes support passing i18n and t to Trans as props PR315
  • v6.0.4 Changes

    • 🛠 fixes translate hoc build
  • v6.0.3 Changes

    • 👀 stop using PureComponent and use Component again...seems we get an issue with react-router v4 if using PureComponents
    • ⚡️ recreate t function on i18next updates so PureComponents relying on t get an update triggered
  • v6.0.2 Changes

    • 🏗 rebuild needed cause of uppercasing for components name was not reflected in last build
  • v6.0.1 Changes

    • ✂ remove react from dependencies - not sure how that came into the package.json
  • v6.0.0 Changes

    • [BREAKING] removes options to set translateFuncName in translate hoc (was not supported in Trans and Interpolate component anyway)
    • 0️⃣ setting i18n instance and defaults can now be done by i18next.use(reactI18nextModule) making I18nextProvider obsolete
    • 👍 As an alternative to the translate hoc you now can use the I18n component supporting a render props (for details about render props https://www.youtube.com/watch?v=BcVAq3YFiuc)