function
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. |
string | null
: The localized symbol character, or null
if the main country cannot be determined.
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/getLocaleCurrencySymbol