Releases: ryandrewjohnson/react-localize-redux
Releases · ryandrewjohnson/react-localize-redux
v2.0.0
The primary goal of this release was to simplify certain areas of the library.
- Less repetition in translations data with new format.
- Avoid having to use localize on Components that are already using connect. In v2 you use selectors in mapStateToProps instead.
- No more local vs global translations. All translations are added with the same action creator
addTranslations
- Optimizations made using reselect on selectors
New features:
- New getTranslate and getActiveLanguage selector can be used instead of localize when component is already using connect.
- Now supports nested translation data
For detailed migration guide see migrating from v1 to v2
v1.1.2
fix typo on currentLanguage prop
v1.1.1
- Updated getLocalizedElement to be smarted and only render HTML tags when they are included in translation strings
v1.1.0
Features
- update translate function to allow for dynamic insertion of variables into localized strings