mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 02:20:49 +01:00
fix: #9934, fix translator test
This commit is contained in:
@@ -27,8 +27,6 @@
|
|||||||
} else if (typeof module === 'object' && module.exports) {
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
// Node
|
// Node
|
||||||
(function () {
|
(function () {
|
||||||
const languages = require('../../../src/languages');
|
|
||||||
|
|
||||||
if (global.env === 'development') {
|
if (global.env === 'development') {
|
||||||
const winston = require('winston');
|
const winston = require('winston');
|
||||||
warn = function (a) {
|
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) {
|
}(function (utils, load, warn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user