New: Headless Commerce with Remix! read more

LocaleLanguageNamePipe

LocaleLanguageNamePipe

Displays a human-readable name for a given ISO 639-1 language code.

Example

{{ 'zh_Hant' | localeLanguageName }}

Signature

class LocaleLanguageNamePipe extends LocaleBasePipe implements PipeTransform {
  constructor(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef)
  transform(value: any, locale?: unknown) => string;
}

Extends

  • LocaleBasePipe

Implements

  • PipeTransform

Members

constructor

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

transform

method
type:
(value: any, locale?: unknown) => string