reload language and definitions when a customAutoLoad module loads
parent
3d3d864835
commit
8d042552c7
|
@ -343,6 +343,8 @@ module.exports = async (s,config,lang,app,io) => {
|
|||
return;
|
||||
}
|
||||
loadModule(shinobiModule)
|
||||
s.reloadLanguages()
|
||||
s.reloadDefinitions()
|
||||
})
|
||||
}else{
|
||||
fs.mkdir(modulesBasePath,() => {})
|
||||
|
|
|
@ -39,5 +39,9 @@ module.exports = function(s,config,lang,app,io){
|
|||
}
|
||||
return file
|
||||
}
|
||||
s.reloadDefinitions = function(){
|
||||
s.loadedDefinitons = {};
|
||||
s.loadedDefinitons[config.language] = s.copySystemDefaultDefinitions()
|
||||
}
|
||||
return defaultFramework
|
||||
}
|
||||
|
|
|
@ -46,5 +46,9 @@ module.exports = function(s,config){
|
|||
}
|
||||
return file
|
||||
}
|
||||
s.reloadLanguages = function(){
|
||||
s.loadedLanguages = {};
|
||||
s.loadedLanguages[config.language] = s.copySystemDefaultLanguage()
|
||||
}
|
||||
return lang
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue