Ruediger Jungbeck
Ruediger Jungbeck

Reputation: 2964

Determine UI Language in Google Apps Script

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

Answers (1)

TheMaster
TheMaster

Reputation: 50573

You can use SpreadsheetApp.getActive().getSpreadsheetLocale() to get spreadsheet locale or Session.getActiveUserLocale() to get locale of the user.

Upvotes: 3

Related Questions