Skip to main content

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

constructor

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

transform

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