Skip to content

Display name
@localizer/format-displayname 1.0.1

displayNameFormatter<T> ( type , options? ): ValueFormatter<T>

  • T extends string - The type of value to format. Exact allowed values are determined by type parameter.
  • type - One of "language", "region", "script", "currency", "calendar", or "dateTimeField" This formatter offers a locale-aware way to translate names of languages, countries, currencies, and more.

TIP

If you prefer to use default settings, consider using a preconfigured country name, currency name or language name formatters. It simplifies the process by providing a ready-to-use configuration for common use cases.