New: Headless Commerce with Remix! read more

LocaleCurrencyNamePipe

LocaleCurrencyNamePipe

Displays a human-readable name for a given ISO 4217 currency code.

Example

{{ order.currencyCode | localeCurrencyName }}

Signature

class LocaleCurrencyNamePipe extends LocaleBasePipe implements PipeTransform {
  constructor(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef)
  transform(value: any, display: 'full' | 'symbol' | 'name' = 'full', locale?: unknown) => any;
}

Extends

  • LocaleBasePipe

Implements

  • PipeTransform

Members

constructor

method
type:
(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef) => LocaleCurrencyNamePipe

transform

method
type:
(value: any, display: 'full' | 'symbol' | 'name' = 'full', locale?: unknown) => any