diff --git a/public/src/translator.js b/public/src/translator.js index 091b9fa534..5f1b6ca9e6 100644 --- a/public/src/translator.js +++ b/public/src/translator.js @@ -204,13 +204,13 @@ winston = require('winston'), language = Meta.config.defaultLang || 'en_GB'; + if (!fs.existsSync(path.join(__dirname, '../language', language))) { winston.warn('[translator] Language \'' + Meta.config.defaultLang + '\' not found. Defaulting to \'en_GB\''); language = 'en_GB'; } utils.walk(path.join(__dirname, '../language', language), function (err, data) { - var loaded = data.length; for (var d in data) { if (data.hasOwnProperty(d)) {