I am debugging (what started as) a legacy add-on for Forms (migrated from the Chrome Web store, but now has its own Google Cloud Project) that was created by a colleague who speaks French. I'm testing it using the Test as add-on... feature.
The Stackdriver messages are showing up in French, e.g.:
2020-02-03 14:43:13.294 EST
Vous ne disposez pas de l'autorisation nécessaire pour effectuer cette action. at onOpen(Code:26)
Although I'm able to understand the error, I'm wondering how it got set to be French and how I can change it to English? Where is the setting for the locale (language) of Stackdriver errors? I could not find anything obvious in console, script, or the Google document containing the script. My Google locale (for my accounts) is set to English.
Edit: This is a Forms add-on, and there is no API that I could find to do something like setSpreadsheetLocale()
. For this reason, it is not a duplicate of How to change Google Apps Script locale?.
Edit2: I created a new Google Form and a new "script" with clasp create ...
and pushed all the same files. The errors are now in English. My assumption is that the locale is "stuck" to the script project. I can see no way to change it.