feat: rtl display + dark theme improvements

This commit is contained in:
Nick committed 2019-06-07 20:04:51 -04:00
1 parent 1d4d379e03
commit 17f9f0baa9
13 files changed
+138 -42

No files matched your search

+4
View File
@@ -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)