Skip to content

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 ​

readonly code: 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 ​

readonly datePickerPlaceholder: 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 ​

readonly defaultNumerals: "latin" | "native"

Defined in: locale.ts:73

Which digit style format() uses when the caller does not ask for one explicitly.


digits ​

readonly digits: readonly string[]

Defined in: locale.ts:71

The 10 native digit characters, index 0-9. Latin digits are ['0', '1', ..., '9'].


direction ​

readonly direction: "ltr" | "rtl"

Defined in: locale.ts:69


monthNames ​

readonly monthNames: 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 ​

readonly rangePickerPlaceholder: string

Defined in: locale.ts:82


relative ​

readonly relative: RelativeForms

Defined in: locale.ts:84

Phrases for formatRelative().


ui ​

readonly ui: LocaleUi

Defined in: locale.ts:86

aria-label and similar chrome for pickers and calendars.


weekdayNames ​

readonly weekdayNames: WeekdayNames

Defined in: locale.ts:78


weekdaySeparator ​

readonly weekdaySeparator: string

Defined in: locale.ts:75

Joins a weekday name onto the rest of a formatted date, e.g. ', ' or '، '.