17
53%
MIT
BuckleScript bindings to react-intl

bs-react-intl

NPM

BuckleScript bindings to react-intl.

To extract messages from Reason source files for localization, use bs-react-intl-extractor.

Installation

# yarn
yarn add bs-react-intl

# or npm
npm install --save bs-react-intl

Examples

Clone this repo.

yarn install
yarn start

Status

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)

Usage

See examples folder.