mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 08:17:30 +02:00
Use reviewed vi translations
On request of vi coordinator (1ec5)
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user