Releases: AckeeCZ/jerome
v5.0.1
v5.0.0
Added
- ✨ Add LocalizationsRaw component [2bc2373]
Changed
- 💥 [BREAKING] Storing intl in sagas using context [d90f22a] – Use
createintlcontext
.
Fixed
- 🐛 Export createIntlContext [932c106]
- 🐛 Intl variable was being overrided when used with multiple intl instances [4c66b98]
Miscellaneous
4.1.0
Add optional onError prop to translatableFactory
. Upgrade @babel/*
packages.
4.0.0
Added second entry point @ackee/jerome/antd
for antd compliant imports. Mark package as sideEffects free.
Refactor to use createIntl
and RawIntlProvider
- usefull to create intl in the component instead of delegating it to the IntlProvider since it can be sent to the saga and stored for an external usage.
Refactors the intlProvider
saga - it doesn't create the duplication of the intl from the react intl provider but uses the intl instance from the intl provider now.
3.1.0
Upgrade from antd LocaleProvider
to Configprovider
to resolve deprecation warning.
3.0.1
3.0.1
3.0.0
Change reducer factory interface - it can receive list of languages and use it to determine default language from window.navigator
.
Do nothing for GET_LOCALE
action in reducer.
v2.0.0
Starts to use new react-intl@3
having support of new context API. That means getting rid of unnecessary whole app rerenders 🎉
Since it's a major version, there are a breaking changes, you can check them in their Migration guide.
Split translatableHOC
to translatableFactory
and translatableWithAntdFactory
to be able to use the HOC even in apps without Ant design.