Bilingual front ends that stay maintainable
We set the dir and lang attributes per locale, use CSS logical properties (margin-inline-start instead of margin-left) and Tailwind's rtl variants, so one component works in both directions. Locale-based routes such as /ar and /en, with hreflang tags for ar-AE and en-AE, keep each language indexable for search engines.
Search and sorting need Arabic-aware handling. We normalize alef and hamza variants, ignore diacritics in queries and sort with Intl.Collator, so a user searching for a name finds it whichever way it was typed.
