Documentation / @jalali-js/i18n / LocalePack
Interface: LocalePack
Defined in: locale.ts:66
A complete data file for one language. Adding a locale is adding one more LocalePack, with no change to format() or any other code (see architecture.md's "Internationalization").
Properties
code
readonlycode:string
Defined in: locale.ts:68
A BCP 47-ish language tag, e.g. 'en' or 'fa'. Not validated; used only as a label.
datePickerPlaceholder
readonlydatePickerPlaceholder:string
Defined in: locale.ts:81
Placeholder text for a closed DatePicker/RangePicker with nothing selected yet, so a consumer who passes no placeholder of their own never sees a genuinely blank input.
defaultNumerals
readonlydefaultNumerals:"latin"|"native"
Defined in: locale.ts:73
Which digit style format() uses when the caller does not ask for one explicitly.
digits
readonlydigits: readonlystring[]
Defined in: locale.ts:71
The 10 native digit characters, index 0-9. Latin digits are ['0', '1', ..., '9'].
direction
readonlydirection:"ltr"|"rtl"
Defined in: locale.ts:69
monthNames
readonlymonthNames:Record<CalendarSystem,MonthNames>
Defined in: locale.ts:77
Every calendar system this locale can format. A third calendar (Phase 12) adds a key here.
rangePickerPlaceholder
readonlyrangePickerPlaceholder:string
Defined in: locale.ts:82
relative
readonlyrelative:RelativeForms
Defined in: locale.ts:84
Phrases for formatRelative().
ui
readonlyui:LocaleUi
Defined in: locale.ts:86
aria-label and similar chrome for pickers and calendars.
weekdayNames
readonlyweekdayNames:WeekdayNames
Defined in: locale.ts:78
weekdaySeparator
readonlyweekdaySeparator:string
Defined in: locale.ts:75
Joins a weekday name onto the rest of a formatted date, e.g. ', ' or '، '.