Options
All
  • Public
  • Public/Protected
  • All
Menu

Module JDNConvertibleCalendarNames

Index

Variables

Const defaultFormat

defaultFormat: "long" = "long"

Const defaultLocale

defaultLocale: "en" = "en"

Const labels

labels: Calendars = names

Functions

Const getMonthNames

  • getMonthNames(calendar: "Gregorian" | "Julian" | "Islamic", locale: string, format: "long" | "short" | "narrow"): string[]
  • Get names of months for the given calendar and the given locale in the given format. Will fall back to the default locale if there are no names available for the preferred locale. Will fall back to long if the preferred format is not available.

    Parameters

    • calendar: "Gregorian" | "Julian" | "Islamic"

      calendar the calendar to get the month names for.

    • locale: string

      the preferred locale.

    • format: "long" | "short" | "narrow"

      the preferred format.

    Returns string[]

Const getWeekdayNames

  • getWeekdayNames(calendar: "Gregorian" | "Julian" | "Islamic", locale: string, format: "long" | "short" | "narrow"): string[]
  • Get names of weekdays for the given calendar and the given locale in the given format. Will fall back to the default locale if there are no names available for the preferred locale. Will fall back to long if the preferred format is not available.

    Parameters

    • calendar: "Gregorian" | "Julian" | "Islamic"

      the calendar to get the weekday names for.

    • locale: string

      the preferred locale.

    • format: "long" | "short" | "narrow"

      the preferred format.

    Returns string[]

Generated using TypeDoc