diff --git a/src/i18n.js b/src/i18n.js index 43cddf6f32..238df963df 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -11,6 +11,7 @@ var loadTranslations = function(locale){ var files = fs.readdirSync(path.join(localePath, locale)); translations[locale] = {}; _.each(files, function(file){ + if(path.extname(file) !== '.json') return; _.merge(translations[locale], require(path.join(localePath, locale, file))); }); };