Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notranslate class to matrixchat to prevent translation by Google Translate #13669

Merged
merged 1 commit into from
May 14, 2020

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented May 14, 2020

Google Translate manipulates the DOM which is fundamentally incomaptible with
React and causes exceptions to be thrown when React tries to manipulate the DOM
based on its VDOM and the DOM methods throw exceptions because the DOM structure
is not what React thinks it is.

Riot has an i18n system, although it doesn't cover all strings and all languages.

Fixes #13557
Alternative to: #13658

…Translate

Google Translate manipulates the DOM which is fundamentally incomaptible with
React and causes exceptions to be thrown when React tries to manipulate the DOM
based on its VDOM and the DOM methods throw exceptions because the DOM structure
is not what React thinks it is.

Riot has an i18n system, although it doesn't cover all strings and all languages.

Fixes #13557
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into an alternative! Code changes look good 👍

@joepie91
Copy link

This has unfortunately introduced a serious accessibility issue; at least one user is using the Google Translate extension to help them follow conversations in a language that they do not speak natively. I suspect there may be more users doing the same. That possibility is broken by this change.

@turt2live
Copy link
Member

@joepie91 it's best to open new issues instead of commenting on old PRs as we tend to dismiss notifications on closed things.

@t3chguy
Copy link
Member

t3chguy commented Jun 10, 2020

Google Translate breaks React in many many ways; https://bugs.chromium.org/p/chromium/issues/detail?id=872770
There isn't much choice here.

@t3chguy t3chguy deleted the dbkr/notranslate branch June 10, 2020 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login page can explode
5 participants