aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/components/LocalizationProvider.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/components/LocalizationProvider.jsx b/src/common/components/LocalizationProvider.jsx
index 4104c773..f69feabf 100644
--- a/src/common/components/LocalizationProvider.jsx
+++ b/src/common/components/LocalizationProvider.jsx
@@ -163,6 +163,7 @@ export const LocalizationProvider = ({ children }) => {
selected = language;
}
dayjs.locale(selected);
+ document.dir = /^(ar|he|fa)$/.test(language) ? 'rtl' : 'ltr';
}, [language]);
return (