mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-08 12:07:27 +08:00
Enable rtl support
This commit is contained in:
parent
a3e79c6572
commit
fee9fd0419
@ -163,6 +163,7 @@ export const LocalizationProvider = ({ children }) => {
|
||||
selected = language;
|
||||
}
|
||||
dayjs.locale(selected);
|
||||
document.dir = /^(ar|he|fa)$/.test(language) ? 'rtl' : 'ltr';
|
||||
}, [language]);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user