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

Changelog History
Page 17

  • v7.3.1 Changes

    • โœ‚ remove react-dom from peer dependencies as module is used in react-native too
  • v7.3.0 Changes

    • ๐Ÿ‘ Allow translate HOC to take a function for getting namespaces 372
  • v7.2.0 Changes

    • โž• Add usePureComponent option PR357
    • Render empty string on empty string as Trans child PR364
  • v7.1.1 Changes

    • ๐Ÿ›  fixes: bring back Trans component t fc from context
  • v7.1.0 Changes

    • optional take i18n.t in Trans component if non t function passed in via props or context
  • v7.0.2 Changes

    • ๐Ÿ›  fixes rendering in Trans component in case of no parent
  • v7.0.1 Changes

    • working Trans component without the need of setting options.react
  • 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