mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-10 22:50:47 +01:00
added defaultLang support, #4655
This commit is contained in:
@@ -91,6 +91,16 @@ var middleware;
|
||||
// });
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
// Build language code list
|
||||
fs.readdir(path.join(__dirname, '../public/language'), function(err, directories) {
|
||||
Plugins.languageCodes = directories.filter(function(code) {
|
||||
return code !== 'TODO';
|
||||
});
|
||||
|
||||
next();
|
||||
});
|
||||
},
|
||||
function(next) {
|
||||
db.getSortedSetRange('plugins:active', 0, -1, next);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user