Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Apps Script internationalization (i18n)

The docs don't seem to mention anything - is there a recommended way on how to do i18n within Google Apps Scripts? Especially ones published as a WebApp? Is there even a way to find out the user's locale?

like image 505
Joscha Avatar asked Oct 31 '12 05:10

Joscha


1 Answers

Session.getActiveUserLocale() should return the locale.

https://developers.google.com/apps-script/reference/base/session#getActiveUserLocale()

like image 182
Zbynek Avatar answered Sep 28 '22 09:09

Zbynek