https://github.com/haxe-react/haxe-react-intl
React Intl externs and tools for haxe-react
https://github.com/haxe-react/haxe-react-intl
haxe i18n intl react
Last synced: about 1 month ago
JSON representation
React Intl externs and tools for haxe-react
- Host: GitHub
- URL: https://github.com/haxe-react/haxe-react-intl
- Owner: haxe-react
- License: mit
- Created: 2018-04-29T13:02:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T07:09:04.000Z (over 6 years ago)
- Last Synced: 2025-01-30T10:44:29.373Z (3 months ago)
- Topics: haxe, i18n, intl, react
- Language: Haxe
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Haxe React Intl
A Haxe library offering externs for the [React-Intl](https://github.com/yahoo/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](https://github.com/yahoo/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`](/src/react/intl/comp/) package.
* `addLocaleData`, `defineMessages` and `injectIntl` are static methods from [`react.intl.ReactIntl`](/src/react/intl/ReactIntl.hx).
* `intlShape` is available as [`react.intl.IntlShape`](/src/react/intl/IntlShape.hx) typedef for use in components `TProps`.## Roadmap
* [X] ReactIntl [methods](https://github.com/yahoo/react-intl/wiki/API)
* [X] React Intl [components](https://github.com/yahoo/react-intl/wiki/Components)
* [X] [Examples apps](https://github.com/yahoo/react-intl/tree/master/examples)
* [X] React-Router example
* [X] Translations example
* [ ] README.md
* [ ] Test suite / CI