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

[TextField] Fix Google Translate zero-width space issue #24563

Merged
merged 6 commits into from
Jan 24, 2021

Conversation

d3mp
Copy link
Contributor

@d3mp d3mp commented Jan 23, 2021

This PR prevents Google Translate to translate the zero-width spaces.

Resolves: #24562

Related issues: #23236, #22719

Issue in Google Translate Help from November 2019

@mui-pr-bot
Copy link

mui-pr-bot commented Jan 23, 2021

Details of bundle changes

Generated by 🚫 dangerJS against 01f9fe8

@d3mp d3mp changed the title [core] fix Google Translate zero width space issue [core] fix Google Translate zero-width space issue Jan 23, 2021
@d3mp d3mp force-pushed the fix/google_zero_width_sapce_translate branch from baf6b73 to 791b86c Compare January 23, 2021 10:53
@mbrookes mbrookes added bug 🐛 Something doesn't work external dependency Blocked by external dependency, we can’t do anything about it labels Jan 23, 2021
@eps1lon
Copy link
Member

eps1lon commented Jan 23, 2021

Issue in Google Translate Help from November 2019

The links in that issue do no longer reproduce for me.

I can also not reproduce the problem on https://next--material-ui.netlify.app/de/components/text-fields/ with the steps described in #24562.

@d3mp
Copy link
Contributor Author

d3mp commented Jan 23, 2021

Issue in Google Translate Help from November 2019

The links in that issue do no longer reproduce for me.

I can also not reproduce the problem on https://next--material-ui.netlify.app/de/components/text-fields/ with the steps described in #24562.

It's weird, I checked your link and I see the problem there:
image

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Reproduces for Portugese but not Japanese for me.

@oliviertassinari oliviertassinari changed the title [core] fix Google Translate zero-width space issue [TextField] Fix Google Translate zero-width space issue Jan 23, 2021
@oliviertassinari oliviertassinari added the component: text field This is the name of the generic UI component, not the React module! label Jan 23, 2021
@oliviertassinari
Copy link
Member

@d3mp I have pushed what I meant in #24563 (comment) to its full extend with a new commit. Could you test that it's enough to fix the Google Translate issue?

@d3mp
Copy link
Contributor Author

d3mp commented Jan 24, 2021

@oliviertassinari I see few issues and one regression:

InputAdornment

Without translation (regression):
image
With translation:
image

HelperText

image

Select

It's completely broken in most of the places
image

ps. I still think we should prevent the translation of zero-space in any case

@oliviertassinari
Copy link
Member

@d3mp Alright, let's do it in smaller steps. Thanks for the fix, I have reverted my exploration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! external dependency Blocked by external dependency, we can’t do anything about it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google translate zero-width space problem
5 participants