Description
receiptI18n provides localised strings for payment receipts but does not indicate whether the active locale uses right-to-left text direction. Contributors should add an isRtl(locale: string): boolean helper and a per-locale rtl: boolean metadata field so receipt rendering code can apply dir="rtl" and mirror layout accordingly.
Acceptance Criteria
Context
- Target file:
src/lib/receiptI18n.ts
- i18n types:
src/lib/i18nTypes.ts
Description
receiptI18nprovides localised strings for payment receipts but does not indicate whether the active locale uses right-to-left text direction. Contributors should add anisRtl(locale: string): booleanhelper and a per-localertl: booleanmetadata field so receipt rendering code can applydir="rtl"and mirror layout accordingly.Acceptance Criteria
isRtl(locale: string): booleanfunction is exported that returns true for RTL locales (ar, he, fa, ur at minimum)rtl: booleanmetadata fieldgetReceiptDirection(locale: string): "ltr" | "rtl"convenience function is also exportedContext
src/lib/receiptI18n.tssrc/lib/i18nTypes.ts