getLocaleCurrencyName
检索与给定语言环境相对应的主要国家/地区的货币名称。对于 en-US 是 “US Dollar”。
Retrieves the name of the currency for the main country corresponding to a given locale. For example, 'US Dollar' for en-US.
getLocaleCurrencyName(locale: string): string | null
参数
locale | string | 用于要使用的语言环境格式规则的语言环境代码。 A locale code for the locale format rules to use. |
返回值
货币名称;如果无法确定主要国家/地区,则为 null。
string | null: The currency name, or null if the main country cannot be determined.