2

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.

  • I don't believe that this question is a duplicate of the one that its marked as. In any case, it is possible, see [this article](https://developers.google.com/gsuite/marketplace/create-listing) it mentions that you should create localized **versions** and when you make your listing, you can define them there. – iansedano Sep 29 '20 at 15:00
  • Just to clarify does it allow to submit several version of the addon each translated to different language or is is just for the description text in the store? – Jakub Michálek Sep 29 '20 at 18:30
  • I was wrong, its not referring to versions of your app, only the description of it. See my answer below. – iansedano Sep 30 '20 at 09:12

1 Answers1

2

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

iansedano
  • 6,169
  • 2
  • 12
  • 24
  • Thanks for the answer i think that this will be the final one i just have one issue that i described in the edit in my original question. – Jakub Michálek Sep 30 '20 at 10:33
  • No problem, but your edit to the question is **out of scope of the original question** its like adding in another question to an old one and it is very different to the main one. You should open another question as detailed [here](https://meta.stackoverflow.com/questions/266767/what-is-the-the-best-way-to-ask-follow-up-questions) - sorry not to be able to help you further. – iansedano Sep 30 '20 at 10:37