The <T> component

Translating your content with the <T> React component

Using the <T> component could not be easier. Simply wrap your content in it, and the content will be translated:

<T>This content will be translated</T>


Limitations when using the <T> component

There are very few limitations:

  1. You can not have any React components inside of the <T> component. It's OK to have plain HTML nodes though (see example below)

  2. The content inside the <T> component cannot exceed 10kb (that's about 5000 characters)

{/* this is ok, since <a> is a plain HTML tag */}
    <a href="">Please send us an email</a>

{/* this will NOT work, since <MyButton> is a React component */}
    <MyButton>Click me</MyButton>

Last updated