Jakub Michálek
Jakub Michálek

Reputation: 163

Options for localization of gmail addon?

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

Answers (1)

iansedano
iansedano

Reputation: 6481

Answer

To localize your add-on you need to do two things.

  1. Modify your script to adapt its UI - Access the user locale or 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
}
  1. When you are creating your listing in Google Cloud Platform. Ensure you add in different versions of the title and descriptions so that these appear in the right locales. This is only for the Marketplace listing.

enter image description here

Upvotes: 2

Related Questions