Using Google Translate API in Python, how do you indicate that some text is not to be translated?

893 Views Asked by At

Using Google Translate API in Python, how do you indicate that some text is not to be translated? The text I have includes variable names e.g. $name$ that should be left as is. I've tried wrapping these in quotes and angled brackets, but no success so far.

1

There are 1 best solutions below

0
On

I just found something:

This contains <span class="notranslate">$code$</span>, which will be skipped.

Related: