i am working on a gmail add-on i am trying to get the user’s local language from the gmail settings using Session.getActiveUserLocale()
this is my function
function getUserLanguage() {
const locale = Session.getActiveUserLocale();
const userProperties = PropertiesService.getUserProperties();
userProperties.setProperty('USER_LANGUAGE', locale);
Logger.log('User locale: ' + locale);
return locale;
}
the problem that it works on the browser when it is triggered it works
i get the “User locale: fr” for example but when i tested it on my iphone gmail app i don’t get anything it’s empty i couldn’t find any reference why is that?
i looked into the appscript documentation but i couldn’t find anything