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

getLocaleCurrencyName

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
      
      getLocaleCurrencyName(locale: string): string | null
    
参数
locale string

A locale code for the locale format rules to use.

返回值

string | null: The currency name, or null if the main country cannot be determined.

参见