I just opened a local HTML file on my disk in Google Chrome. Chrome detected the language the file is in and asked me whether I want to translate it.
The document has no lang
attribute. It contains some Hungarian text, Chrome offers translation from Hungarian.
Here is a small file that causes Chrome to offer translation dialog:
<!DOCTYPE html>
<html>
<body>
Tudományegyetem
</body>
</html>
I think this is weird. Does the Chrome send my local files to google for language detection?
EDIT OK, now we have a truly minimal file. I deleted "Eötvös Loránd" (a Hungarian name), and kept a single Hungarian word, that means "university". There is a single accented char in the page now, namely "á" -- Unicode U+00E1 (I use UTF-8 locally). This character is not unique to Hungarian language; it is used in many languages. Chrome still detects Hungarian language.
<head>
part. You can change domain information to mask it if you like.