Use reviewed vi translations

On request of vi coordinator (1ec5)
This commit is contained in:
John Firebaugh
2013-08-06 13:57:21 -07:00
parent 97bae43ac7
commit 39544265a8
+3 -1
View File
@@ -64,7 +64,9 @@ function getResource(resource, callback) {
function getLanguage(resource) {
return function(code, callback) {
code = code.replace(/-/g, '_');
request.get(resource + 'translation/' + code, { auth : auth },
var url = resource + 'translation/' + code;
if (code === 'vi') url += '?mode=reviewed';
request.get(url, { auth : auth },
function(err, resp, body) {
if (err) return callback(err);
callback(null, yaml.load(JSON.parse(body).content)[code]);