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 | 语言环境代码,例如 A locale code, such as |
返回值
语言环境代码。例如, fr
。
string
: The locale code. For example, fr
.