Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IImmutable<L, R, S>

The interface for representing a locale. It consists of three parts; language, region and script. The language, by default, is an ISO639-1 two letter string. The region, by default, is an ISO3166-1 two letter string. The script is one of the valid script types available in this library. The region and script are optional.

see

Iso639

see

Iso3166

see

Script

Type parameters

  • L

  • R

  • S

Hierarchy

Index

Properties

Properties

language

language: L

Used to help identify languages, whether spoken, written, signed, or otherwise signaled, for the purpose of communication. This includes constructed and artificial languages but excludes languages not intended primarily for human communication, such as programming languages.

see

Iso639

Optional region

region: R

Used to indicate linguistic variations associated with or appropriate to a specific country, territory, or region. Typically, a region subtag is used to indicate variations such as regional dialects or usage, or region-specific spelling conventions. It can also be used to indicate that content is expressed in a way that is appropriate for use throughout a region, for instance, Spanish content tailored to be useful throughout Latin America.

see

Iso3166

Optional script

script: S

Used to indicate the script or writing system variations that distinguish the written forms of a language or its dialects

see

Script