填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

getLocaleId

从当前已加载的语言环境中检索语言环境 ID。加载的语言环境也可能是全球语言环境,而不是区域性语言环境。

Retrieves the locale ID from the currently loaded locale. The loaded locale could be, for example, a global one rather than a regional one.

      
      getLocaleId(locale: string): string
    
参数
locale string

语言环境代码,例如 fr-FR

A locale code, such as fr-FR.

返回值

语言环境代码。例如, fr

string: The locale code. For example, fr.

参见