BuckleScript bindings to react-intl.
To extract messages from Reason source files for localization, use bs-react-intl-extractor.
# yarn
yarn add bs-react-intl
# or npm
npm install --save bs-react-intl
Clone this repo.
yarn install
yarn start
Despite lots of unchecked the most hard work is done. I'll add bindings to the rest of the components once I need them. Feel free to help me out and submit a PR.
- addLocaleData
- intlShape
- injectIntl
- defineMessages
- IntlProvider
- FormattedDate
- FormattedDate (children-as-function)
- FormattedTime
- FormattedTime (children-as-function)
- FormattedRelative
- FormattedRelative (children-as-function)
- FormattedNumber
- FormattedNumber (children-as-function)
- FormattedPlural
- FormattedPlural (children-as-function)
- FormattedMessage
- FormattedMessage (children-as-function)
- DefinedMessage
- DefinedMessage (children-as-function)
- FormattedHTMLMessage
- FormattedHTMLMessage (children-as-function)
See examples
folder.