A language and optionally an associated region.

Locale

interface Locale {
    language: string;
    region?: string;
}

Properties

Properties

language: string

ISO 639-2 code of the associated language with the locale.

Locale

region?: string

ISO 3166-1 alpha-3 code of the country, or UN M49 code of the area associated with the locale.

Locale