LanguageApp.translate doesn't work for script sharing user? -


i need format date in gas, month/year, month word, in italian.

i used language.app.translate, utilities.formatdate formats month in english language. code fragment following:

  var dteng = utilities.formatdate(dt, "cet", "mmmm/yyyy");   dttran = languageapp.translate(dteng, 'en', 'it'); 

when execute script user, works fine, , translation done. when execute different user (the 1 using script), translation doesn't happen.

the execution transcript reports:

languageapp.translate([january/2007, en, it])

but result same, untranslated string.

all remaining part of script executes without problems.

any hint? should open issue?

tks

massimo

in case behavior of:

function gettranslate() {   var dteng = utilities.formatdate(new date(2007, 0, 1), 'cet', 'mmmm/yyyy');   var dttran = languageapp.translate(dteng, 'en', 'it');   /*var dttran = languageapp.translate(dteng, 'en', 'es'); // `enero/2007` <- works expected.*/   logger.log(dttran); // january/2007 } 

is equal in cases, user, returns january/2007.

apparently characters not interpreted correctly, formats like: 'mmmm/yyyy', 'mmmm.yyyy' or 'mmmm_yyyy' not perform appropriate translation.

with other formats (e.g. 'mmmm-yyyy'), works expected.

update

using google translate web:

enter image description here


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -