nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 185 forks source link

Whitelist for translating sources #246

Open sandyboxy opened 1 year ago

sandyboxy commented 1 year ago

Hello, I am using this piece of code to translate my text: GoogleTranslator(source='auto', target='en).translate(<value>). Is there a way to set a whitelist of languages to not translate? For example to avoid to translate english text. Thanks.