Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
261 views
in Technique[技术] by (71.8m points)

Force Edge not to automatically translate content

I did some searching and never found an answer. StackOverflow's search algorithm helped me, now that I formulated my whole post. So I thought I might as well put this post up - perhaps someone will find their way here through my search words.

Problem

My app's text content is automatically translated in the browsers. In Chrome it's actually alright - nothing weird, doesn't translate people's names. In Microsoft Edge we have a problem though. Even words in the 'correct' language are translated, and so are names.

I can't rely on user's having the correct settings in their browsers.

How to disable automatic translation in Edge?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try adding a language attribute to your html, as <html lang="en">(*Change it according to your site language). OR You can also add translate="no" to any portion you do not want to translate, as <body translate="no">

*For more ISO language code you can visit https://www.w3schools.com/tags/ref_language_codes.asp


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...