reload language and definitions when a customAutoLoad module loads

cron-as-worker-process
Moe 2022-06-07 16:46:36 -07:00
parent 3d3d864835
commit 8d042552c7
3 changed files with 10 additions and 0 deletions

View File

@ -343,6 +343,8 @@ module.exports = async (s,config,lang,app,io) => {
return;
}
loadModule(shinobiModule)
s.reloadLanguages()
s.reloadDefinitions()
})
}else{
fs.mkdir(modulesBasePath,() => {})

View File

@ -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
}

View File

@ -46,5 +46,9 @@ module.exports = function(s,config){
}
return file
}
s.reloadLanguages = function(){
s.loadedLanguages = {};
s.loadedLanguages[config.language] = s.copySystemDefaultLanguage()
}
return lang
}