3 ms·
I added <meta name="google" content="notranslate"> to all pages in a single-page-web-app after discovering some bug or other with Chrome screwing up the pag
by robocat 3y ago
I added
<meta name="google" content="notranslate">
to all pages in a single-page-web-app after discovering some bug or other with Chrome screwing up the page.
Apparently the new incantation to fix an app (can be applied to an element) is (ugly: I presume it isn't CSS to avoid supporting dynamically changing it):
<html translate="no">
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...
Every now and then I would look at the meta tags for a major single page app and discover some new horror when searching for the reason for the meta tag!
- michaelcampbell 3y agoI know what you mean, but this caused me a second of "wait, what?" > all pages in a single-page-web-app
- robocat 3y agoGood point. This was the Elizabethan days when computers ran on coal: IE when we were explorers of The Internet. We were bleeders, but there still existed a vestigial login page, and some other evil cthulic pages (I know whence they were begat for I was their father).
- callalex 3y agoIn the USA, 20% of computers still run on coal! https://www.eia.gov/energyexplained/electricity/electricity-in-the-us.php https://www.eia.gov/energyexplained/electricity/electricity-...
- jonathrg 3y ago<html translate="no"> I first read this as "translate to Norwegian"
- anitil 3y agoIt's the reverse-Norway problem - https://news.ycombinator.com/item?id=26671136 https://news.ycombinator.com/item?id=26671136
- elygre 3y agoIn Norway, the word “subject” translates to “fag”. Back in the Usenet days there was a Norwegian group or hierarchy named “no.fag”, which of course regularly got misunderstood.
- cyco130 3y agoI wouldn't want to disallow translation, but in this case it was unnecessary anyway.