# 语言环境

¥Locale

对于刻度上的刻度数必须相应地使用语言敏感数字格式进行格式化的应用,你可以通过设置 locale 选项启用这种格式。

¥For applications where the numbers of ticks on scales must be formatted accordingly with a language sensitive number formatting, you can enable this kind of formatting by setting the locale option.

语言环境是一个 Unicode BCP 47 语言环境标识符 (opens new window) 的字符串。

¥The locale is a string that is a Unicode BCP 47 locale identifier (opens new window).

Unicode BCP 47 语言环境标识符包括

¥A Unicode BCP 47 locale identifier consists of

  1. 语言代码,

    ¥a language code,

  2. (可选)脚本代码,

    ¥(optionally) a script code,

  3. (可选)地区(或国家)代码,

    ¥(optionally) a region (or country) code,

  4. (可选)一个或多个变体代码,以及

    ¥(optionally) one or more variant codes, and

  5. (任选地)一个或多个扩展序列,

    ¥(optionally) one or more extension sequences,

所有存在的组件都用连字符分隔。

¥with all present components separated by hyphens.

默认情况下,图表使用正在运行的平台的默认区域设置。

¥By default, the chart is using the default locale of the platform which is running on.

# 配置选项

¥Configuration Options

命名空间:options

¥Namespace: options

名称 类型 默认 描述
locale string undefined 带有 BCP 47 语言标签的字符串,利用 国际数字格式 (opens new window)