Today I was having some issues with Nuxt and came upon this question:
Nuxt Hot reloading for new components Is not working
When I visit this page in Chrome I get a prompt to translate the page from French. The post is in English although English does not appear to be the native language of the question asker.
It looks like SO is not using the lang attribute. Perhaps that could help with both accessibility and to prevent weird translation prompts like this?
It was tested on two different devices running Chrome version 78.0.3904.108 (Official Build) (64-bit). Safari does not appear to have the issue.
nuxt
, but that in Google Translate auto-detects as Swedish...Edit: Ah, I putnuxt vue
in GT, and it detected as French. Maybe it's the combo of those words used in the "Related Posts" section?lang="en"
attribute to the<html
, then opened the page locally, but a translation was still suggested by Chrome. There might be a solution, but settinglang
there doesn't seem to work<meta name="google" content="notranslate">
. Works for me, no translation gets suggesteddocument.head.insertAdjacentHTML('beforeend', '<meta name="google" content="notranslate">');
plus instant script injection<title>
that's tripping it up, as it begins with "vue" :<title>vue.js - Nuxt Hot reloading for new components Is not working - Stack Overflow</title>
content
will disable the translator) From that page the remaining words that do exist in French are "router", "sans" and "font"