tameemsafi / typewriterjs

A simple yet powerful native javascript plugin for a cool typewriter effect.
https://www.npmjs.com/package/typewriter-effect
MIT License
2.46k stars 220 forks source link

fix: Avoid Google cloud translation to change text while typewriter effect is running #128

Open computationalcore opened 3 years ago

computationalcore commented 3 years ago

What

Avoid google chrome's translate functionality to ruin the typewriter effect strings.

Just add translate="no" attribute to the core component of the Typewriter react component.

Why

If Google Chrome Translate is enable it automatically translate letter by letter of the typewriter effect text, while it is running.

References

https://cloud.google.com/translate/troubleshooting

alemens commented 7 months ago

Add translate="no" to your tag, like so: <html translate="no">