devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Exclude code blocks from Google Chrome translation

Open Xiuer0x0 opened this issue 5 years ago • 4 comments

The Chrome converter can translate code in a "front-end" module. Is it possible to avoid this situation by adding a "code" tag under "pre"?

Xiuer0x0 avatar Feb 18 '20 05:02 Xiuer0x0

Using HTML's translate attribute: https://www.w3.org/International/questions/qa-translate-flag

simon04 avatar Mar 09 '20 15:03 simon04

I cannot reproduce the translation issue, e.g. translating https://devdocs.io/css/translate to Russian preserves the <pre> content: devdocs io_css_translate

simon04 avatar May 31 '21 19:05 simon04

My current browser version is 90.0.4430.212 (64bit) I tried several languages, including Russian, and this phenomenon occurred.

to Russian image

to Traditional Chinese image

to Japanese image

Xiuer0x0 avatar Jun 01 '21 03:06 Xiuer0x0

I believe the best solution would be to add the i18n package and each of us would do an individualized translation for each language.

It's the most work, but it's still the best.

arnonrdp avatar Nov 04 '21 11:11 arnonrdp