feat: default locale with namespacing
This commit is contained in:
1 parent
28cf67cdaa
commit
1dfb55e803
7 files changed
+56
-50
No files matched your search
@@ -56,7 +56,7 @@ module.exports = {
|
||||
WIKI.config.lang.code = args.locale
|
||||
WIKI.config.lang.autoUpdate = args.autoUpdate
|
||||
WIKI.config.lang.namespacing = args.namespacing
|
||||
WIKI.config.lang.namespaces = args.namespaces
|
||||
WIKI.config.lang.namespaces = _.union(args.namespaces, [args.locale])
|
||||
|
||||
const newLocale = await WIKI.models.locales.query().select('isRTL').where('code', args.locale).first()
|
||||
WIKI.config.lang.rtl = newLocale.isRTL
|
||||
|
||||
Reference in new issue
Block a user