【问题标题】:Gets the language setting of the current user always return 'en-US'获取当前用户的语言设置总是返回'en-US'
【发布时间】:2021-09-13 14:38:42
【问题描述】:

我创建了一个简单的 Google Apps 脚本函数来获取当前用户的语言设置。 目标是获取 google 表格菜单语言。

我正在使用以下 Google 应用脚本:

function myFunction() {
  const systemInfo = Session.getActiveUserLocale();
  return systemInfo;
}

但无论在菜单中选择哪种语言,

函数总是返回 'EN-us' !!

【问题讨论】:

标签: google-apps-script google-sheets


【解决方案1】:

这是新编辑器中的一个已知错误。 在 Google 修复它之前,您可以使用旧的(旧版)。 Bug report

【讨论】:

    猜你喜欢
    • 2017-12-03
    • 2010-12-04
    • 2019-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-03
    • 2011-10-13
    • 1970-01-01
    相关资源
    最近更新 更多