← Back EN HE
Components / i18n + RTL

i18n + RTL

English source · Hebrew translation. Logical CSS properties flip automatically when dir="rtl".

Locale switch
append ?lang=he or ?lang=en. Sticky in session + cookie.
EN — English HE — עברית Current: he · dir rtl
t() lookup
translates from lang/{locale}.json with English fallback
t('common.save') → שמור
t('common.cancel') → ביטול
t('nav.bots') → בוטים
t('status.active') → פעיל
t('messages.error_generic') → אירעה שגיאה. אפשר לנסות שוב.
t('wizard.step_of_total', ['current'=>2,'total'=>6]) → שלב 2 מתוך 6
Logical CSS properties
margin-inline-* / inset-inline-* flip automatically. transform: translateX uses --rtl-flip multiplier.
border-inline-start: flips edge in RTL
padding-inline-start: indent flips automatically
Date + currency formatting
EN: MM-DD-YYYY · HE: DD.MM.YYYY · ILS for HE, USD elsewhere
xbot_format_date(now) → 04.06.2026
xbot_format_money(49.99)→ ₪49.99
xbot_format_money(1200)→ ₪1,200.00