Skip to content

Releases: ryandrewjohnson/react-localize-redux

v2.5.1

17 Aug 03:09
Compare
Choose a tag to compare

Added new Redux action creator addTranslationForLanguage

Improved documentation

Minor typo fixes and error message changes

01 Aug 22:56
Compare
Choose a tag to compare

Optimizations

26 Jul 02:18
Compare
Choose a tag to compare

Before Optimization

  • Any connected component using the getTranslate selector would re-render whenever any Redux action was dispatched.

After Optimization

  • The getTranslate selector will only trigger a re-render if the translation data is updated using the addTranslation action creator, or if the languages or active language changes using setLanguages or setActiveLanguage action creator.

NOTE: if your component is connected to other slices of state along with getTranslate a re-render will occur if any of the other connected state items change.

Bug fix

25 Jul 03:31
Compare
Choose a tag to compare
  • fixed failing unit tests

v2.3.0

25 Jul 03:16
Compare
Choose a tag to compare
  • The translate function will now return a plain string for translations that don't contain any HTML markup.
  • Those translations that do contain HTML will still be wrapped in a <span> tag - same as before.

v2.2.1

24 Jul 01:41
Compare
Choose a tag to compare
  • move reselect from peerDependencies to dependencies

v2.2.0

09 Jul 02:52
Compare
Choose a tag to compare
  • add new feature to allow passing multiple translations to child components

v2.1.0

09 Jul 00:57
Compare
Choose a tag to compare
  • update reselect version to 3.0.0
  • update localize function so it takes an additional parameter slice which is needed when adding localeReducer using combineReducers.
  • update README to include instructions on adding localeReducer when using combineReducers

v2.0.2

01 Jul 13:27
Compare
Choose a tag to compare
  • add missing exports getActiveLanguage, getLanguages, and getTranslations
  • update README with additional selectors getLanguages and getTranslations

v2.0.1

20 Jun 02:30
Compare
Choose a tag to compare
  • Small tweaks to documentation