react-intl 0.1.0

React intl externs

Released 2018-05-01.

To install, run:

haxelib install react-intl 0.1.0

See using Haxelib in Haxelib documentation for more information.

Maintainerklabz
Websitehttps://github.com/kLabz/haxe-react-intl
Current version0.1.0
StatisticsInstalled 2 times
LicenseMIT
Tags

README.md

Haxe React Intl

A Haxe library offering externs for the React-Intl library.

React Intl provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.

Documentation

The haxe documentation has not been written yet (PRs welcome!), but the original React Intl wiki covers most topics.

The main differences between using the javascript lib and this haxe lib are:

  • Components are in the react.intl.comp package.
  • addLocaleData, defineMessages, injectIntl, formatDate, formatTime, formatRelative, formatNumber, formatPlural, formatMessage and formatHTMLMessage are static methods from react.intl.ReactIntl.
  • intlShape is available as react.intl.IntlShape typedef for use in components TProps.

Roadmap