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.55k stars 177 forks source link

Whitelist for translating sources #246

Open sandyboxy opened 11 months ago

sandyboxy commented 11 months 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.