Skip to content

Releases: amsul/react-translated

v2.4.0

16 Feb 16:12
Compare
Choose a tag to compare

Added ability to escape token characters with a preceding \.

For example:

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

v2.2.4

22 Nov 21:39
Compare
Choose a tag to compare

Added support for React Native 0.57+

v2.2.0

17 Jan 20:19
Compare
Choose a tag to compare

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

15 Jan 19:00
Compare
Choose a tag to compare

Added support for custom rendered text:

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

v2.0.0

10 Dec 04:15
Compare
Choose a tag to compare

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

02 Dec 09:47
Compare
Choose a tag to compare
v1.2.3

v1.1.0

01 Dec 21:59
Compare
Choose a tag to compare
v1.1.0

v1.0.0

01 Dec 07:15
Compare
Choose a tag to compare
Remove the trailing comma