Reputation: 2964
How do I determine the active UI language (eg English, German) in Google Apps Script for Google Sheets in an Add-On?
I want to use this language to show my sidebar in the same language.
Upvotes: 0
Views: 501
Reputation: 50573
You can use SpreadsheetApp.getActive().getSpreadsheetLocale()
to get spreadsheet locale or Session.getActiveUserLocale()
to get locale of the user.
Upvotes: 3