Releases: synacor/preact-i18n
2.4.0-preactx - Support for "zero" as key for 0 items
1.5.0 - Support for "zero" as key for 0 items
2.3.1-preactx
Breaking Change
- The
<MarkupText>
component now usespreact-markup
to safely render HTML. Depending on the HTML you are rendering with the<MarkupText>
component this may produce different behavior than before. - The markup rendered by a
<MarkupText>
component will now be wrapped in adiv
element instead of aspan
.
2.1.1-preactx
1.4.1 README update for TypeScript
Call out how to install @types/preact-i18n
for TypeScript definitions for the module
2.0.0-preactx.2 Support Preact X
Release 2.0.0-preactx.2
has been pushed to the preactx
tag in npm and supports Preact X (version 10).
1.4.0 Allow <Text /> nodes to be used and translated in template field values
1.3.0 Add getWrappedComponent() function to withText and intl decorators
In order to help with unit testing (and likely other scenarios) the getWrappedComponent()
method has been added to all decorator functions. This combines with the same function provided by other related libraries like wiretie
, preconf
, and preact-context-provider
so that it is easier to get the underlying decorated component for the purpose of spying/stubbing on methods in unit tests without having to arbitrarily export an unwrapped version of the component from the module.
1.2.2 Update README with eslint plugin info
A companion ESLint plugin, eslint-plugin-preact-i18n has been released. Updated the README to reflect its existence.
1.2.1 <MarkupText /> bugfix for Issue #20
Fix Issue #20 where <MarkupText/>
only rendered the first child of fallback