Reputation: 163
I want to publish a gmail addon and i wonder what are the possibilities of localization. I want the addon to be usable in 3 different languages.
I thought there would be a mention of it here but i couldn't find it.
Upvotes: 2
Views: 236
Reputation: 6481
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
}
Upvotes: 2