diff --git a/red/api/locales.js b/red/api/locales.js index d7d32cf80..6fc2069ce 100644 --- a/red/api/locales.js +++ b/red/api/locales.js @@ -19,7 +19,7 @@ module.exports = { get: function(req,res) { var namespace = req.params[0]; namespace = namespace.replace(/\.json$/,""); - var lang = "en-US"; // TODO: determine requested lang + var lang = req.query["lang"]||"en-US"; // TODO: determine requested lang var catalog = i18n.catalog(namespace,lang); res.json(catalog||{}); }