Google Apps脚本国际化(i18n) [英] Google Apps Script internationalization (i18n)

查看:132
本文介绍了Google Apps脚本国际化(i18n)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档似乎没有提及任何内容 - 有没有关于如何在Google Apps脚本中完成i18n的推荐方法?特别是作为WebApp发布的?有没有办法找到用户的语言环境?

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?

推荐答案

Session.getActiveUserLocale()应返回语言环境。

Session.getActiveUserLocale() should return the locale.

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

这篇关于Google Apps脚本国际化(i18n)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆