问题
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?
回答1:
Session.getActiveUserLocale() should return the locale.
https://developers.google.com/apps-script/reference/base/session#getActiveUserLocale()
回答2:
I would strongly suggest to implement this with a HTML service on client side using this very handy jQuery plug-in: http://code.google.com/p/jquery-i18n-properties/
来源:https://stackoverflow.com/questions/13151787/google-apps-script-internationalization-i18n