Airsaid / AndroidLocalizePlugin

:earth_asia: Android localization plugin. supports multiple languages and multiple translators.
https://plugins.jetbrains.com/plugin/11174-androidlocalize
Apache License 2.0
590 stars 91 forks source link

Translation error: com.airsaid.localization.translate.TranslationException: Failed to translate #36

Closed skbhati199 closed 3 years ago

skbhati199 commented 3 years ago

Please ensure you have given all the following requested information in your report.

Please select the affected platforms

Please select the translator to use

Version of Plugin and IDE

Issue details

Translation error: com.airsaid.localization.translate.TranslationException: Failed to translate "My Application" text from Auto language to German language: java.io.IOException: Server returned HTTP response code: 429 for URL: https://translate.google.cn/translate_a/single?sl=auto&tl=de&client=gtx&dt=t&dj=1&ie=UTF-8&oe=UTF-8&tk=941359.572215

Please add new features Add Google Client ID and API key easy for paid libary

Airsaid commented 3 years ago

The 429 error code appears because of too many requests, which temporarily cannot be translated. Solution:

  1. Try the translation again later.
  2. Switch to other translators.

In addition, you can set the translation interval on the settings page to be longer or reduce the number of translations at a time to avoid triggering the issue as much as possible.