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
I found a bug that occurs under very specific circumstances, as far as I can tell.
A TranslateServerIsDown exception is thrown when I try to translate the words "slow" and "fast" (so far those are the only two words I have found to cause this error) from English to Chinese Simplified (locale is zh_cn). Other locales (specifically Chinese Traditional, zh_tw) work fine.
Going through line by line shows that the error in the title is thrown in line 38 when the split(",") method is called. Something about the encoding that is returned from Google, only from those two words and that specific locale, breaks it.
I played around with forcing utf-8 and other encodings, but was not yet able to fix the problem.
The text was updated successfully, but these errors were encountered:
I have now found a few other words ("high", "crouch", "speed") that cause this error, but my guess is that this is a problem on Google's side, not a bug with this gem.
I found a bug that occurs under very specific circumstances, as far as I can tell.
A TranslateServerIsDown exception is thrown when I try to translate the words "slow" and "fast" (so far those are the only two words I have found to cause this error) from English to Chinese Simplified (locale is zh_cn). Other locales (specifically Chinese Traditional, zh_tw) work fine.
Going through line by line shows that the error in the title is thrown in line 38 when the split(",") method is called. Something about the encoding that is returned from Google, only from those two words and that specific locale, breaks it.
I played around with forcing utf-8 and other encodings, but was not yet able to fix the problem.
The text was updated successfully, but these errors were encountered: