Result of calling parseLocale.

interface LocaleResult {
    language: string;
    script?: string;
    territory?: string;
}

Properties

language: string

The language component, e.g. "es".

script?: string

The script (alphabet), e.g "Hans".

territory?: string

The territory, e.g. "CA" in "en-CA".