英文:
How to disable Google translate for HTML Class names
问题
I'm running through to ignoring html class name translation. I'm finding out the following solution
this text will not be translated
But I want to ignore my HTML Class name to be ignored instead of text.
Example:
In the following example I do not want to translate my dynamic classname.
Anyone help me to achieve this.
英文:
I'm running through to ignoring html class name translation. I'm finding out the following solution
<span class="notranslate">this text will not be translated</span>
But I want to ignore my HTML Class name to be ignored instead of text.
Example:
<div data-bind="attr : { 'class':'notranslate '+headerLabel()}">
Result:
<div class="notranslate classname">
In the following example I do not want to translate my dynamic classname.
Anyone help me to achieve this.
答案1
得分: 1
<html translate="no">
英文:
Add this line to your code for disable the whole google translate in your webpage.
<html translate="no">
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
- google-translate
- html
- knockout.js
评论