feat(i18n): add full Arabic (ar) translation

Adds a complete Arabic locale (2759 keys, full parity with en) and wires
it into routing, RTL direction detection, message loading, the language
switcher, and flag icons alongside the existing he/fa RTL locales.
This commit is contained in:
xhzeem
2026-07-21 23:07:40 +02:00
committed by Linus Rath
parent 3dceecb4c5
commit fda898fc96
6 changed files with 3285 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
// RTL locales: Hebrew (he) and Persian/Farsi (fa). Everything else is LTR.
const rtlLocales = new Set(['he', 'fa']);
// RTL locales: Arabic (ar), Hebrew (he), and Persian/Farsi (fa). Everything else is LTR.
const rtlLocales = new Set(['ar', 'he', 'fa']);
export function getLocaleDirection(locale: string): 'ltr' | 'rtl' {
return rtlLocales.has(locale) ? 'rtl' : 'ltr';