Releases
v29.0.0
29.0.0 (2020-01-07)
Bug Fixes
Example had the wrong variable name (c03cd7f )
Repair addImport (55528a2 )
Repair addImport (a67028e )
Use correct var name in example (d19041b )
Features
Ability to add useI18n even if props are destructured inside the (1217f17 )
Ability to add useI18n even if props are destructured inside the (574bdd0 )
Add displayName to translate() (fa6fcd8 )
Add displayName to translate() (680d412 )
Add example for use-i18n codemod (4af0dc5 )
Add example for use-i18n codemod (da83cc1 )
addImport does not duplicate imports (70b7aa4 )
addImport does not duplicate imports (ba992ca )
Codemod for useI18n (ec4c805 )
Codemod for useI18n (0293461 )
I18n provider use new context API through hook (8d23059 )
I18n provider use new context API through hook (2bfb7ea )
Only modify file if used useI18n (38911bb )
Only modify file if used useI18n (fc9ff20 )
Remove props argument if empty (333f5c6 )
Remove props argument if empty (f444cbb )
Remove unused imports (d7950e6 )
Remove unused imports (3efc757 )
Remove wrapping translate() in all usages of the Component (1548b83 )
Remove wrapping translate() in all usages of the Component (000e0f2 )
Retro-compatibility with old context API (15fd3be )
Simplify compose if possible (d5986cf )
Simplify compose if possible (f708e57 )
Use hook for i18n (#1306 ) (f0f7f99 )
BREAKING CHANGES
Snapshots will be impacted since translate() wrapped
components now have a proper displayName
Snapshots will be impacted and you will have to dive()
one level if you use in your tests (since I18n is implemented
through a ContextProvider)
Snapshots will be impacted since translate() wrapped
components now have a proper displayName
Snapshots will be impacted and you will have to dive()
one level if you use in your tests (since I18n is implemented
through a ContextProvider)
You can’t perform that action at this time.