Language

Hierarchy

  • Language

Properties

code

code: string

Locale code

A value is a string consisting of two parts separated by a hyphen:

  • a two- or three-letter IETF language code;
  • a region code (ISO 3166-1), usually a two-letter country code. Example:
  • en-US — locale for English in the United States;
  • de-DE — locale for German in Germany.

name

name: string

Language name.

The value is the name of the language in that language. Examples:

  • English is the English language.
  • Español is the Spanish language.