getLocaleCurrencySymbol
检索用于表示与给定语言环境对应的主要国家/地区的货币的符号。对于 en-US 为 $。
Retrieves the symbol used to represent the currency for the main country corresponding to a given locale. For example, '$' for en-US.
getLocaleCurrencySymbol(locale: string): string | null
参数
locale | string | 用于要使用的语言环境格式规则的语言环境代码。 A locale code for the locale format rules to use. |
返回值
本地化的符号字符;如果无法确定主要国家则为 null。
string | null: The localized symbol character, or null if the main country cannot be determined.