Interface Locale

Locale for formatting

interface Locale {
    dayPeriodAbbreviated: DayPeriod;
    dayPeriodNarrow: DayPeriod;
    dayPeriodWide: DayPeriod;
    eraAbbreviated: [string, string];
    eraNarrow: [string, string];
    eraWide: [string, string];
    longMonthNames: string[];
    longWeekdayNames: string[];
    monthLetters: string[];
    quarterAbbreviations: string[];
    quarterLetter: string;
    quarterWord: string;
    shortMonthNames: string[];
    shortWeekdayNames: string[];
    standAloneLongMonthNames: string[];
    standAloneMonthLetters: string[];
    standAloneQuarterAbbreviations: string[];
    standAloneQuarterLetter: string;
    standAloneQuarterWord: string;
    standAloneShortMonthNames: string[];
    weekdayLetters: string[];
    weekdayTwoLetters: string[];
}

Properties

dayPeriodAbbreviated: DayPeriod
dayPeriodNarrow: DayPeriod

Fixed day period names (AM/PM/noon/midnight, format 'a' and 'b')

dayPeriodWide: DayPeriod
eraAbbreviated: [string, string]
eraNarrow: [string, string]

Era names: AD, BC

eraWide: [string, string]
longMonthNames: string[]

Month names

longWeekdayNames: string[]

Week day names, starting with sunday

monthLetters: string[]

Month letters

quarterAbbreviations: string[]

Quarter abbreviations e.g. 1st, 2nd, 3rd, 4th

quarterLetter: string

The letter indicating a quarter e.g. "Q" (becomes Q1, Q2, Q3, Q4)

quarterWord: string

The word for 'quarter'

shortMonthNames: string[]

Three-letter month names

shortWeekdayNames: string[]
standAloneLongMonthNames: string[]

In some languages, months need different names when used stand-alone

standAloneMonthLetters: string[]
standAloneQuarterAbbreviations: string[]
standAloneQuarterLetter: string

In some languages, quarters need different names when used stand-alone

standAloneQuarterWord: string
standAloneShortMonthNames: string[]
weekdayLetters: string[]
weekdayTwoLetters: string[]

Generated using TypeDoc