bluerain Internationalisation plugin

Adds internationalization through react-intl-reduxarrow-up-right . https://blueeast.gitbook.io/bluerain-plugin-intlarrow-up-right

🌏 Web

πŸ–₯ Electron

πŸ“± React Native

βœ”οΈ

βœ”οΈ

TBD

Screenshots

NA

Components

This plugin registers following components in the Component registry, so they can be reused later by other apps and plugins:

IntlConsumer

This Component is used to provide Intl functionality as a prop

<BR.Components.IntlConsumer>
  {({ children, intl }) => {

  return props.intl
  }}
</BR.Components.IntlConsumer>

Hooks

bluerain.intl.messages

This hook gives the ability to add custom intl messages.

Parameters:

Name

Type

Description

messages

Object

The messages db

Returns:

Name

Type

Description

messages

Object

The messages db

Example:

This example registers custom english and urdu messages to the system:

API

IntlPluginConfigs

This is the default configuration set that is used at boot time.

Properties

InternationalizationPlugin

Extends Plugin

react-intl plugin to add internationalization to BlueRain Apps

Plugin Properties

setLocale

Change app's locale

setLocale Parameters

Higher Order component in inject intl prop in Component

Parameters

  • Component Component

Returns Component

injectIntl

react-intl's higher order component

injectIntl Parameters

  • Component Component

Returns Component

Last updated