UNPKG

arabicfmt

Version:

Arabic-first formatting for numbers, currency, dates and bidirectional text across all 22 Arab League countries — with correct handling of the 2025–2026 Unicode currency-symbol transition (Saudi Riyal U+20C1, UAE Dirham U+20C3, Omani Rial U+20C4).

7 lines (5 loc) 253 B
/** Digit shaping system: Western (`latn`, 0-9) or Eastern Arabic (`arab`, ٠-٩). */ type NumeralSystem = "latn" | "arab"; /** Resolved text direction. */ type Direction = "rtl" | "ltr" | "neutral"; export type { Direction as D, NumeralSystem as N };