formatjs / formatjs

The monorepo home to all of the FormatJS related libraries, most notably react-intl.
https://formatjs.io/
14.28k stars 1.37k forks source link

preact-i18n <Text> support #1604

Closed drzraf closed 4 years ago

drzraf commented 4 years ago

I need to integrate components built on preact in a project (a Gutenberg block) based on React. These preact components make use of <Text>, but current React IntlProvider can't cope with them.

Describe the solution you'd like I'd be more than happy to see react-intl supporting translations from preact-i18n based components and even more if these two i18n implementations could find some room for interoperability.

Additional context https://github.com/synacor/preact-i18n/issues/9

longlho commented 4 years ago

The short answer unfortunately is no :( preact-i18n does not use ICU syntax, which makes it incompatible w/ our MessageFormat