Getting GoogleSheets API errors in user's primary language

We are trying to handle the google sheets cell count limit overflow issue, where we are validating the error message, status text and status code to check the issue type since google APIs are not providing a common error message like Exception errors message.

If the primary language of the user's gmail account is set to some other language than english we are getting error message in the selected language but not in english.

Since we are handling it for english language only in our code base, its failing for other language users. Is there a way to get all the error messages from Sheets API only in english regardless of user's primary language ?

0 4 626
4 REPLIES 4

What language are you coding in? I ask because there's a really active Google Apps Script community at https://groups.google.com/g/google-apps-script-community/ that might be a better place to ask this if you're working in Apps Script.

We are using google client JavaScript SDK

As you might already know, Apps Script is pretty darned similar to JavaScript, so it might not hurt to ask over in the Apps Script community. I donโ€™t know of a similar resource related to the JavaScript SDK, unfortunatelyโ€ฆ..

Thanks for your reply, how we can move this question to Apps Script community ?

Top Labels in this Space