From 2268f250bb4bdb2d0dff4f9281ce799fd6337f78 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 26 Jul 2016 10:01:54 -0400 Subject: [PATCH] removed commented out language method --- src/plugins.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/plugins.js b/src/plugins.js index da7f25eefe..6eba5de2ce 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -425,28 +425,4 @@ var middleware; ], next); }; - // function addLanguages(params, callback) { - // Plugins.customLanguages.forEach(function(lang) { - // console.log('route for', '/language/' + lang.route); - // params.router.get('/language' + lang.route, function(req, res, next) { - // res.json(lang.file); - // }); - - // var components = lang.route.split('/'), - // language = components[1], - // filename = components[2].replace('.json', ''); - - // translator.addTranslation(language, filename, lang.file); - // }); - - // for(var resource in Plugins.customLanguageFallbacks) { - // params.router.get('/language/:lang/' + resource + '.json', function(req, res, next) { - // winston.verbose('[translator] No resource file found for ' + req.params.lang + '/' + path.basename(req.path, '.json') + ', using provided fallback language file'); - // res.sendFile(Plugins.customLanguageFallbacks[path.basename(req.path, '.json')]); - // }); - // } - - // callback(null); - // } - }(exports));