feat: rtl display + dark theme improvements
This commit is contained in:
1 parent
1d4d379e03
commit
17f9f0baa9
13 files changed
+138
-42
No files matched your search
@@ -57,6 +57,10 @@ module.exports = {
|
||||
WIKI.config.lang.autoUpdate = args.autoUpdate
|
||||
WIKI.config.lang.namespacing = args.namespacing
|
||||
WIKI.config.lang.namespaces = args.namespaces
|
||||
|
||||
const newLocale = await WIKI.models.locales.query().select('isRTL').where('code', args.locale).first()
|
||||
WIKI.config.lang.rtl = newLocale.isRTL
|
||||
|
||||
await WIKI.configSvc.saveToDb(['lang'])
|
||||
|
||||
await WIKI.lang.setCurrentLocale(args.locale)
|
||||
|
||||
Reference in new issue
Block a user