add auto switch to RTL body if locale in rtlLocales

pull/1319/head
Audric Ackermann 5 years ago
parent c47d0e5707
commit c9d1b82004
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -22,11 +22,18 @@
openInbox: 'openInbox',
},
applyTheme() {
const rtlLocales = ['fa']
const theme = storage.get('theme-setting') || 'light';
this.$el
.removeClass('light-theme')
.removeClass('dark-theme')
.removeClass('rtl')
.addClass(`${theme}-theme`);
const loc = window.i18n.getLocale()
if (rtlLocales.includes(loc)) {
this.$el.addClass('rtl');
}
},
applyHideMenu() {
const hideMenuBar = storage.get('hide-menu-bar', true);

Loading…
Cancel
Save