Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

getLocaleCurrencyCode

Retrieves the default currency code for the given locale.

See more...

      
      getLocaleCurrencyCode(locale: string): string | null
    
Parameters
locale string

The code of the locale whose currency code we want.

Returns

string | null: The code of the default currency for the given locale.

Description

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