[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/common/getLocaleCurrencyCode [Back]  [Original]

getLocaleCurrencyCode Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/common

getLocaleCurrencyCode

function
deprecatedsince v4217

Retrieves the default currency code for the given locale.

Deprecation warning

We recommend you create a map of locale to ISO 4217 currency codes. Time relative currency data is provided by the CLDR project. See https://www.unicode.org/cldr/charts/44/supplemental/detailed_territory_currency_information.html

orthos-back.svg [orthos-back.svg]

On this page

    arrow_upward_alt Back to the top

    API

    function getLocaleCurrencyCode(locale: string): string | null;
    @deprecated

    We recommend you create a map of locale to ISO 4217 currency codes. Time relative currency data is provided by the CLDR project. See https://www.unicode.org/cldr/charts/44/supplemental/detailed_territory_currency_information.html

    @paramlocalestring

    The code of the locale whose currency code we want.

    @returnsstring | null

    The code of the default currency for the given locale.

    Description

    Retrieves the default currency code for the given locale.

    The default is defined as the first currency which is still in use.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page