سؤال

How can I detect in my webpage using javascript if the user is using a browser with RTL language? For example Arabic. I want to provide a different layout for them.

هل كانت مفيدة؟

المحلول

I might be missing something, but since it's your webpage/server that ultimately decides whether to display/send Arabic text or not can't you use the browser language preference to also provide a different layout?

JavaScript for detecting browser language preference

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top