react-localize-redux
Advanced tools
Changelog
3.0.1 (June 4, 2018)
Translate
component requires getDerivedStateFromProps.Changelog
3.0.0 (June 3, 2018)
LocalizeProvider
.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.
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
.
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)