Initializer
Language(String tag, String languageCode, String? countryCode, String? variant, String displayName, String displayLanguage, String? displayCountry, String? displayVariant)
Parameters:
  • tag

    The BCP 47 locale tag, for example, en, ca, en-AU, or es-MX.

  • languageCode

    The language code, for example, en, or es.

  • countryCode

    The country or region code, for example, AU, or MX.

  • variant

    Variant values, separated by underscores.

  • displayName

    A localized displayable name for this tag, for example, English, inglés, English (Australia), or inglés (Australia).

  • displayLanguage

    A localized displayable name for the languageCode, for example, English, or inglés.

  • displayCountry

    A localized displayable name for the countryCode, for example, Australia, or México.

  • displayVariant

    A localized displayable name for the language variant.

Attributes
countryCodeSource Codeshared String? countryCode

The country or region code, for example, AU, or MX.

displayCountrySource Codeshared String? displayCountry

A localized displayable name for the countryCode, for example, Australia, or México.

displayLanguageSource Codeshared String displayLanguage

A localized displayable name for the languageCode, for example, English, or inglés.

displayNameSource Codeshared String displayName

A localized displayable name for this tag, for example, English, inglés, English (Australia), or inglés (Australia).

displayVariantSource Codeshared String? displayVariant

A localized displayable name for the language variant.

languageCodeSource Codeshared String languageCode

The language code, for example, en, or es.

stringSource Codeshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

tagSource Codeshared String tag

The BCP 47 locale tag, for example, en, ca, en-AU, or es-MX.

variantSource Codeshared String? variant

Variant values, separated by underscores.

Inherited Attributes
Attributes inherited from: Object
Inherited Methods
Methods inherited from: Object