You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
341 B
JavaScript
15 lines
341 B
JavaScript
'use strict';
|
|
|
|
const winston = require('winston');
|
|
|
|
function warn(msg) {
|
|
if (global.env === 'development') {
|
|
winston.warn(msg);
|
|
}
|
|
}
|
|
|
|
module.exports = require('../public/src/modules/translator.common')(require('./utils'), (lang, namespace) => {
|
|
const languages = require('./languages');
|
|
return languages.get(lang, namespace);
|
|
}, warn);
|