Google Apps Script internationalization (i18n)

南楼画角 提交于 2019-12-30 08:57:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!