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

react-localize-redux

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-localize-redux - npm Package Versions

1
8

3.0.1

Diff

Changelog

Source

3.0.1 (June 4, 2018)

  • Update package.json peerDependencies react version to 16.3.0 as the Translate component requires getDerivedStateFromProps.
ryandrewjohnson
published 3.0.0 •

Changelog

Source

3.0.0 (June 3, 2018)

Breaking Changes

  • The Redux action creators initialize, addTranslation, addTranslationForLanguage, and setActiveLanguage have been removed. Instead they are now methods available on LocalizeContext, and can be added to your component's as props using the withLocalize higher-order component.

  • The translationTransform option is no longer available as an initialize option. Instead addTranslation now takes an options object, which accepts the translationTransform function.

    • This made more sense as this allows for adding transformations specific to a single translation instead of globally setting a transformation that you'd be stuck using for all translations.
  • initialize now takes a single options argument instead of multiple arguments.

  • Translate render props API now takes a single options object as an argument instead of multiple arguments.

  • renderInnerHtml option now set to false by default instead of true.

    • This is to mirror React's functionality where by default any children will be escaped by defualt.
  • Remove showMissingTranslationMsg, missingTranslationMsg, missingTranslationCallback initialize options. THe new onMissingTranslation option now covers all these scenarios.

  • Remove setTranslations action - instead pass languages to initialize.

  • Remove localize higher-order component - use new withLoclize higher-order component instead. Or if you only require access to translate function use <Translate> component instead.

  • If using Redux, all state related to localize will be added under the localize key instead of locale.

  • If using Redux, localeReducer is now named localizeReducer.

  • Fix typos in ADD_TRANSLATION_FOR_LANGUAGE action (Issue #65)

ryandrewjohnson
published 3.0.0-rc4 •

ryandrewjohnson
published 3.0.0-rc3 •

ryandrewjohnson
published 3.0.0-rc2 •

ryandrewjohnson
published 3.0.0-rc1 •

ryandrewjohnson
published 2.17.5 •

ryandrewjohnson
published 2.17.4 •

ryandrewjohnson
published 2.17.3 •

ryandrewjohnson
published 2.17.2 •

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