In my case the 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 as expected.*/
Logger.log(dttran); // January/2007
}
is equal in all cases, for any user, always returns January/2007
.
Apparently certain characters are not interpreted correctly, with formats like: 'MMMM/yyyy'
, 'MMMM.yyyy'
or 'MMMM_yyyy'
not perform the appropriate translation.
With other formats (e.g. 'MMMM-yyyy'
), works as expected.
UPDATE
Using Google Translate from the Web: