Repository navigation
This PR introduces native Arabic (ar) language support to the website. - #283
Conversation
|
My First open source project I am so excited !!! (;^ω^) |
- Replace the French-derived i18n-ar.ts with a full native Arabic table covering all 1050 current keys, matching the English key set and placeholder set exactly. - Mirror the layout for right-to-left: set dir="rtl" on <html> when the locale is Arabic, and convert direction-sensitive CSS to logical properties (margin/border/padding-inline, inset-inline, logical corner radii, text-align start/end) so spacing and borders flip automatically. Add [dir=rtl] overrides for transform-based direction (toggles, nav chevrons, expand chevron). - Add the missing 'ar' entry to the html lang map. - Drop the unrelated esbuild entry under allowScripts.
The Arabic table ships as its own lazy chunk (i18n-ar-*.js, ~69 kB, loaded only when Arabic is selected), so the initial English bundle is untouched. The aggregate now measures 1,817.7 kB, which is 38 kB over the 1,780 kB budget; raise it to 1,845 kB. Same documented pattern as every previous locale (pt, es/fr/de/zh, ja/ko, ru, vi).
|
Merged after a full pass over the branch. Thanks for the initial wiring, @y1464892-cmd — the locale plumbing (union, Before merging I completed the parts the description still listed as open:
Verified with |
Thanks for pulling this in, rebasing, and setting up the logical CSS for RTL! Glad the initial locale wiring held up solid. |
Really happy to see this merged! This was my first accepted contribution to an open-source project, and I'm glad I got to work on it with my friend. Thanks to the maintainer for helping us get it across the finish line!❤️ |
Description
Rather than relying on automated browser translation which often produces awkward or inaccurate phrasing this change provides high-quality, native translations to ensure a natural reading experience for Arabic-speaking users.
Related Issue
Resolves #282
Scope of Work & Current Status
ar)