I want to publish a Gmail addon and I wonder what the possibilities are for localization. I want the addon to be usable in 3 different languages.
I thought there would be a mention of in Publish an add-on but I couldn't find anything.
To localize your add-on you need to do two things.
getActiveUserLocale()
are the key methods. Use these within the Add-on, and use that to change the interface accordingly. For example:if (userLocale == "en") {
// Render English UI
} else if (userLocale == "es") {
// Render Spanish UI
}