• Aryan Noshirvnai's avatar
    Add Farsi (Persian) language support, full app · a3d23388
    Aryan Noshirvnai authored
    i18next + react-i18next, a 49-namespace translation tree (en/fa) covering every page and shared component, RTL layout via dir="rtl" on <html>, and Vazirmatn as the Farsi-capable font. Gated behind VITE_ENABLE_FARSI (off by default) - not exposed to real users until explicitly turned on at build time, same pattern as REMIX_ENABLED.
    
    English translation values are byte-identical to the strings they replace, so every existing test assertion kept passing unchanged (433/433).
    
    Fixed along the way: Tailwind's @theme inline mode bakes literal values into generated utilities rather than live var() references, which silently broke the Farsi font override - split --font-sans/--font-heading into a plain (non-inline) @theme block so the :lang(fa) override actually takes effect. Verified visually via Playwright against a Farsi-enabled build.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    a3d23388
remix.json 1.04 KB