Skip to content

Releases: synacor/preact-i18n

2.4.0-preactx - Support for "zero" as key for 0 items

10 May 18:34
Compare
Choose a tag to compare

Add support for the word "zero" in addition to "none" for 0 items to aid compatibility with CLDR.

Thanks to @msfstef for this contribution!

1.5.0 - Support for "zero" as key for 0 items

10 May 18:28
Compare
Choose a tag to compare

Add support for the word "zero" in addition to "none" for 0 items to aid compatibility with CLDR.

Thanks to @msfstef for this contribution!

2.3.1-preactx

09 Feb 16:22
Compare
Choose a tag to compare
2.3.1-preactx Pre-release
Pre-release

Breaking Change

  • The <MarkupText> component now uses preact-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 a div element instead of a span.

2.1.1-preactx

09 Jun 20:48
Compare
Choose a tag to compare
  • Fix #41 and #39
  • Use new createContext API and remove getChildContext, add new export IntlContext
  • Add new useText hook!

1.4.1 README update for TypeScript

13 Sep 14:49
Compare
Choose a tag to compare

Call out how to install @types/preact-i18n for TypeScript definitions for the module

2.0.0-preactx.2 Support Preact X

08 Jul 21:15
Compare
Choose a tag to compare

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

08 Jul 19:26
Compare
Choose a tag to compare

1.3.0 Add getWrappedComponent() function to withText and intl decorators

26 Mar 20:38
Compare
Choose a tag to compare

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

11 Jul 21:24
Compare
Choose a tag to compare

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

18 May 21:32
Compare
Choose a tag to compare

Fix Issue #20 where <MarkupText/> only rendered the first child of fallback