2

The issue is simple, when I try to do auto translate from English to a detected language I got an error, the formula is:

=GOOGLETRANSLATE("Cat"; "en"; "auto")

and the error is something like

Error, Google Translate does not support translation from en to pl-PL.

The problem (I think) is that GOOGLETRANSLATE is supposed to get language as two letter code when default value is language + country code (which is not supported https://support.google.com/docs/answer/3093331?hl=en)

Is it possible to fix that? I would like to translate to user's language (so I want to use "auto" value), no matter what is the language and I assume that if the problem occurs for one language it will happen for different one.

outlying
  • 578
  • 1
  • 8
  • 19
  • 1
    This is not an issue, I want auto-translation to users language, even if I use it like this `=GOOGLETRANSLATE("Cat";"en";"auto")` I got the same error message, `auto` suppose to be converted to local language which, in case of Google Spreadsheet, is "pl-PL" (in my case), which is wrong because this language format is not supported. Manual language support works but what if I want share something with users from a lot of other countries. – outlying Jan 26 '18 at 21:09

3 Answers3

6

Have you tried to use ; instead of ,.

Example:

=GOOGLETRANSLATE(A1 ; "auto"; "bg")
4b0
  • 21,981
  • 30
  • 95
  • 142
Tanyo Ivanov
  • 98
  • 2
  • 9
  • I'm not sure why did this answer get more upvotes, in the original question I posted a formula with `;` – outlying Mar 15 '22 at 13:59
  • Because, usually the formulas are using comas (,) like the SUM formula for example. But this formula uses semicolon (;) and most of the time we are trying the first way. I searched long time after I found why it is. – Tanyo Ivanov Mar 15 '22 at 14:09
1

I have the same issue for Russian. The formula =GOOGLETRANSLATE("Cat"; "en"; "auto") gives the error:

Google Translate does not support translating from en to ru-RU.

This is Google issue, the best way is to report it:

  • Menu: Help > Report a problem

Here's a workaround:

Here's the sample code:

function getLocale()
{
  var locale = SpreadsheetApp.getActive().getSpreadsheetLocale(); // pl_PL    
  return /(.*)_/.exec(locale)[1]; // pl
}

The usage:

=GOOGLETRANSLATE("Cat"; "en"; getLocale())

Max Makhrov
  • 17,309
  • 5
  • 55
  • 81
1

auto-translate is supported only for these 16 locales:

brazil germany mexico spain
canada (english) hong kong philippines taiwan
china italy portugal united kingdom
france japan south korea united states

see more at: https://stackoverflow.com/a/73767720/5632629

player0
  • 124,011
  • 12
  • 67
  • 124