Options
All
  • Public
  • Public/Protected
  • All
Menu

An abstract base class for all locales

abstract

Hierarchy

Index

Constructors

  • new Locale(name: string, options: { weekStart: number }): Locale

Properties

#name: string
#ws: number

Accessors

  • get name(): string
  • get weekStart(): number

Methods

  • formatNumber(n: number, options?: { minimumIntegerDigits?: number }): string
  • Formats a number

    Parameters

    • n: number
    • Optional options: { minimumIntegerDigits?: number }
      • Optional minimumIntegerDigits?: number

    Returns string

  • getMonthNames(calendar: Calendar, format?: MonthNameFormat): string[]
  • getWeekdayNames(format?: WeekdayNameFormat, weekStart?: number): string[]
  • Returns the weekday names

    Parameters

    • Optional format: WeekdayNameFormat
    • Optional weekStart: number

    Returns string[]

  • getZoneTitle(zoneName: string, format: ZoneTitleFormat): string
  • Gets the (localized) title of a zone

    Parameters

    • zoneName: string
    • format: ZoneTitleFormat

    Returns string

Generated using TypeDoc