fix: #9934, fix translator test

isekai-main
Barış Soner Uşaklı 3 years ago
parent 719cfc0d57
commit 8d316d1859

@ -27,8 +27,6 @@
} else if (typeof module === 'object' && module.exports) {
// Node
(function () {
const languages = require('../../../src/languages');
if (global.env === 'development') {
const winston = require('winston');
warn = function (a) {
@ -36,7 +34,10 @@
};
}
module.exports = factory(require('../utils'), languages.get, warn);
module.exports = factory(require('../utils'), function (lang, namespace) {
const languages = require('../../../src/languages');
return languages.get(lang, namespace);
}, warn);
}());
}
}(function (utils, load, warn) {

Loading…
Cancel
Save