Enable rtl support

This commit is contained in:
Anton Tananaev 2024-04-07 08:35:43 -07:00
parent a3e79c6572
commit fee9fd0419

View File

@ -163,6 +163,7 @@ export const LocalizationProvider = ({ children }) => {
selected = language;
}
dayjs.locale(selected);
document.dir = /^(ar|he|fa)$/.test(language) ? 'rtl' : 'ltr';
}, [language]);
return (