How to prevent translation of content with the Translator
The Translator allows you to tag content so that it isn't translated. For example, you may want to tag code, a brand name, or a word/phrase that doesn't make sense when localized.
Methods for preventing translation
Tag your content with
notranslate
. It's by design that this works only when the input textType is set as HTMLExample:
<span class="notranslate">This will not be translated.</span> <span>This will be translated. </span>
<div class="notranslate">This will not be translated.</div> <div>This will be translated. </div>
Tag your content with
translate="no"
. This only works when the input textType is set as HTMLExample:
<span translate="no">This will not be translated.</span> <span>This will be translated. </span>
<div translate="no">This will not be translated.</div> <div>This will be translated. </div>
Use the dynamic dictionary to prescribe a specific translation.
Don't pass the string to the Translator for translation.
Custom Translator: Use a dictionary in Custom Translator to prescribe the translation of a phrase with 100% probability.
Next steps
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για