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

查看:18
本文介绍了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/应用程序脚本/reference/base/session#getActiveUserLocale()

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

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