react-typist icon indicating copy to clipboard operation
react-typist copied to clipboard

Not working properly with react-intl

Open Pomanks opened this issue 7 years ago • 4 comments

I've encountered some issues working with react-typist :

• It doesn't work if you use react-intl with <FormattedMessage/> tags (the text isn't written). • It works fine if you use instead {formatMessage()} inside the <span> tag but.. as soon as the text is written, you'd have to reload the page to translate it either way it won't (and you have then some text in one language and what's left in a second one..). Not that pretty :/

Anyway to correct this ? I'm not saying I use it perfectly cause I'm quite new to react and react-intl but I'm posting this just so you're aware of these issues (and in case someone has a solution) 👍

Anyway, your solution if pretty neat and useful.

Pomanks avatar Feb 12 '17 09:02 Pomanks

Thanks for the heads up! I'll take a look at how we can improve this

jstejada avatar Mar 12 '17 18:03 jstejada

might be related to #29

jstejada avatar Oct 16 '17 05:10 jstejada

Having the same issue as @Pomanks

smakosh avatar May 18 '18 13:05 smakosh

I am using i18next and used the workarround described in #29 i.e.:

<Typist key={t("some translation")}>
...
</ Typist>

ohlr avatar Mar 22 '20 11:03 ohlr