You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
first time I used this script, it works normally. after that I got this error translator.translate_strings(file_name="Localizable.strings", target_lang="es", source_lang="en") File "/usr/local/lib/python3.11/site-packages/stringstranslate/strings_translator.py", line 54, in translate_strings file.write("\"" + word.replace("\\", "") + "\" = \"" + self.translator.translate(word, dest=target_lang, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/client.py", line 172, in translate data = self._translate(text, dest, src) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/client.py", line 75, in _translate token = self.token_acquirer.do(text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/gtoken.py", line 184, in do self._update() File "/usr/local/lib/python3.11/site-packages/googletrans/gtoken.py", line 55, in _update self.tkk = self.RE_TKK.findall(r.text)[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
Hello
first time I used this script, it works normally. after that I got this error
translator.translate_strings(file_name="Localizable.strings", target_lang="es", source_lang="en") File "/usr/local/lib/python3.11/site-packages/stringstranslate/strings_translator.py", line 54, in translate_strings file.write("\"" + word.replace("\\", "") + "\" = \"" + self.translator.translate(word, dest=target_lang, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/client.py", line 172, in translate data = self._translate(text, dest, src) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/client.py", line 75, in _translate token = self.token_acquirer.do(text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/googletrans/gtoken.py", line 184, in do self._update() File "/usr/local/lib/python3.11/site-packages/googletrans/gtoken.py", line 55, in _update self.tkk = self.RE_TKK.findall(r.text)[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range
The text was updated successfully, but these errors were encountered: