Is it possible to have translations in a .jsx file?


#1

If so how? Currently I am using props to make it possible to use translations for button text but I was wondering if there was a better way.


#2

Yes, use the Translate component:

<Translate translationKey={translationKey} />

(btw this is currently in beta and subject to change)