resxtranslator icon indicating copy to clipboard operation
resxtranslator copied to clipboard

Google Api Error: Too many text segments [400]

Open elizeon opened this issue 3 years ago • 1 comments

Hi, I've just set up to use Google Translate in the app for the first time. When clicking 'Google Translate' and choosing 'en' to 'de' I get the error pictured. image It seems there's no way for me to choose to send less strings at once to avoid this error. I probably have less than 100 strings in my project, it's not a particularly large translation project so I was surprised by the error. I have resx files for de, es, fr, it, nl and pt.

Note for others with the issue: In the meantime, I found that the easiest way to translate is to copy everything into a google sheets and use this formula for translation: =GOOGLETRANSLATE(cell number, "en","de") Then copy it back into the app.

elizeon avatar Mar 02 '23 19:03 elizeon

It may be that it has to be split up into multiple batches. We're happy to accept contributions in PRs.

HakanL avatar Mar 02 '23 20:03 HakanL