fix: localization master callback + various fixes

This commit is contained in:
Nicolas Giard
2018-11-18 16:38:00 -05:00
parent 3abc254685
commit 27adad8dad
10 changed files with 69 additions and 18 deletions

View File

@@ -33,6 +33,15 @@ module.exports = {
// Load current language + namespaces
this.refreshNamespaces(true)
// Listen for localization events
WIKI.events.on('localization', (action) => {
switch (action) {
case 'reload':
this.refreshNamespaces()
break
}
})
return this
},
attachMiddleware (app) {