600+ million people write right-to-left: two fixes your app needs

Evil Martians logo, Nina Torgunakova Frontend Engineer, title “600+ million people write right-to-left: two fixes your app needs”, and an alien writing left-to-right and right-to-left.

Nina Torgunakova covers two scenarios. For English apps with free-form inputs, set dir="auto" so the browser picks direction from the first character, no JavaScript needed. For fully localized UIs, set dir="rtl" on <html> and swap physical CSS properties for logical ones like margin-inline-start, padding-inline-end, and text-align: start.

evilmartians.com/chronicles/600-million-people-write-right-to-left-2-fixes-your-app-needs