Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-i18next

Package Overview
Dependencies
Maintainers
2
Versions
316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18next - npm Package Versions

1
32

6.0.2

Diff

Changelog

Source

6.0.2

  • rebuild needed cause of uppercasing for components name was not reflected in last build
jamuhl
published 6.0.1 •

Changelog

Source

6.0.1

  • remove react from dependencies - not sure how that came into the package.json
jamuhl
published 6.0.0 •

Changelog

Source

6.0.0

  • [BREAKING] removes options to set translateFuncName in translate hoc (was not supported in Trans and Interpolate component anyway)
  • 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)
jamuhl
published 5.4.1 •

Changelog

Source

5.4.1

  • fixes AST implementation for preact
jamuhl
published 5.4.0 •

Changelog

Source

5.4.0

  • replaces regex used to parse nodes from string to an ast implementation solving #298
jamuhl
published 5.3.0 •

Changelog

Source

5.3.0

  • Pass extra parameters to Trans parent component
jamuhl
published 5.2.0 •

Changelog

Source

5.2.0

  • adds module export in package.json pointing to es dist files.
jamuhl
published 5.1.0 •

Changelog

Source

5.1.0

  • you now can set i18n instance on translate hoc once using setI18n:
import translate from 'react-i18next';
import i18n from './i18n';

translate.setI18n(i18n);
jamuhl
published 5.0.0 •

Changelog

Source

5.0.0

  • [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 child react like { react: { wait: true } }
  • 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'
  }
});
  • 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'
});
jamuhl
published 4.8.0 •

Changelog

Source

4.8.0

  • make trans component work with preact and preact-compat
  • add preact example
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc