getCurrencySymbol

Returns the currency symbol for a given currency code, or the code if no symbol available (e.g.: format narrow = $, format wide = US$, code = USD) If no locale is provided, it uses the locale "en" by default

getCurrencySymbol(code: string, format: 'wide' | 'narrow', locale: 'en' = 'en'): string

参数

code

Type: string.

format

Type: 'wide' | 'narrow'.

locale

Type: 'en'.

可选. 默认值是 'en'.

返回值

string