Created
August 31, 2020 21:37
-
-
Save XWilliamY/26aedb1a73fd4e2f344523b2b353b405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isinstance(text, list): | |
result = [] | |
for item in text: | |
translated = self.translate(item, dest=dest, src=src, **kwargs) | |
result.append(translated) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment