- Added support for 'de-CH' locale
- Bump react-intl dependency in order to specifically support react 16, 17 and 18.
- Do not transpile dynamic import statements to allow for code splitting.
- Bump @babel/cli, @babel/core, @babel/plugin-proposal-class-properties, @babel/plugin-proposal-export-default-from, @babel/plugin-proposal-export-namespace-from, @babel/plugin-proposal-object-rest-spread, @babel/plugin-syntax-dynamic-import, @babel/preset-env, @babel/preset-flow and @babel/preset-react
- Support a fallback component to render while fetching translations
- Return translation ids when debug flag is set to true
- Intl.PluralRules and Intl.RelativeTimeFormat polyfills not being loaded correctly (@ArnaudWeyts in #19)
- Bump @formatjs polyfill packages to latest version (@ArnaudWeyts in #19)
- Breaking: bump react-intl from 4.x.x to 5.x.x, see react-intl changelog before upgrading (@ArnaudWeyts in #19)
- Expose FormattedRelativeTime and formatRelativeTime correctly
- Major upgrade of react-intl to support HTML formatted messages (@sanderbrugge in #13)
- Minor update of @babel/cli
- Minor update of @babel/core
- Minor update of @babel/plugin-proposal-class-properties
- Minor update of @babel/plugin-proposal-export-default-from
- Minor update of @babel/plugin-proposal-export-namespace-from
- Minor update of @babel/plugin-proposal-object-rest-spread
- Minor update of @babel/preset-env
- Export wrapped FormattedDate from react-intl
- Export wrapped FormattedTime from react-intl
- Export wrapped FormattedRelative from react-intl
- Export wrapped FormattedNumber from react-intl
- Export wrapped FormattedPlural from react-intl
- Export wrapped FormattedHtmlMessage from react-intl
- Export and inject formatPlural into 'withI18n' from react-intl
- Export and inject formatTime into 'withI18n' from react-intl
- Export and inject formatHtmlMessage into 'withI18n' from react-intl
- Export and inject formatNumber into 'withI18n' from react-intl
- Export and inject formatRelative into 'withI18n' from react-intl
- Map translationId for the Translation component through a mapProps function
- Exported type Translate has been renamed to StringFormatter
- Exported type FormatDate has been renamed to Formatter
- Add a debug mode which, when enabled, will print the translation IDs instead of the actual translations.
- Locale data from
react-intl
is now loaded with a dynamic import (import()
). So the data will be loaded asynchronously now, instead of putting all the locale data into your bundle. This makes your bundle much smaller.
- Minor update of @babel/cli
- Minor update of @babel/core
- Minor update of @babel/plugin-proposal-class-properties
- Minor update of @babel/plugin-proposal-export-default-from
- Minor update of @babel/plugin-proposal-export-namespace-from
- Minor update of @babel/plugin-proposal-object-rest-spread
- Minor update of @babel/preset-env
- Patch update of babel-plugin-transform-imports
- Patch update of babel-plugin-transform-react-remove-prop-types
- Rename 'language' prop to 'locale'. (added in #4)
- Default locale is now 'en-GB' instead of 'en'. (added in #4)
- Support passing locale codes (e.g. 'nl-BE'). (added in #4)
- Flow types for
withI18n
. (@nickwaelkens in #2)
- Initial changelog