React Translated Versions Save

A dead simple way to add complex translations (i18n) in a React (DOM/Native) project 🌎🌍🌏

v2.4.0

5 years ago

Added ability to escape token characters with a preceding \.

For example:

'this is *bold* and this \*is not\*'

v2.2.4

5 years ago

Added support for React Native 0.57+

v2.2.0

6 years ago

Replaced custom rendered text in favor of translated text as string:

<Translator>
  {({ translate }) => (
    <input
      placeholder={translate({
        text: 'Enter your age {firstName}',
        data: { firstName: 'Sergey' },
      })}
      />
  )}
</Translator>

v2.1.0

6 years ago

Added support for custom rendered text:

<Translate
  text='Enter your age {firstName}'
  data={{ firstName: 'Sergey' }}
  render={({ translatedText }) => (
    <input placeholder={translatedText} />
  )}
/>

v2.0.0

6 years ago

This release comes with some nice behind the scenes functionality. The only notable API change is the removal of the need to tag templates:

 'Hi, {firstName}!': {
-  en: tag `Hi, ${'firstName'}!`,
+  en: 'Hi, {firstName}!',
   // ...
 },

v1.2.3

6 years ago

v1.1.0

6 years ago

1.0.0

6 years ago