The front-end solves the problem that page access always automatically pops up the browser's translation of this page.

I cloned a project today and it turns out that the translation page
that comes
with the browser always pops up by default. I
Insert image description here
always thought it was set by js.
In the end, I found out that this is a basic setting. It
lies in the lang attribute of the html tag.
If en is set here,
Insert image description here
it will start every time. They all pop up.
Just change it to lang=zh-CN
Insert image description here
and run it again and it will stop popping up again.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/133038630