getLocaleEraNames
检索给定语言环境的格里高利历日历。
Retrieves Gregorian-calendar eras for the given locale.
      
      getLocaleEraNames(locale: string, width: TranslationWidth): Readonly<[string, string]>
    参数
 locale  | string | 用于要使用的语言环境格式规则的语言环境代码。 A locale code for the locale format rules to use.  | 
 width  | TranslationWidth | 所需的字符宽度。 The required character width.  | 
返回值
本地化年代字符串的数组。例如,对于 en-US,是 [AD, BC]。
Readonly<[string, string]>: An array of localized era strings. For example, [AD, BC] for en-US.