Language tags use dash separator (fixes #1434)

This commit is contained in:
John Firebaugh
2013-05-08 12:02:33 -07:00
parent 8454754d25
commit 499aa6fb7c
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,8 +3,8 @@
"bs",
"ca",
"zh",
"zh_TW",
"hr",
"zh-TW",
"cs",
"da",
"nl",
+1 -1
View File
@@ -75,7 +75,7 @@ function getLanguages(resource, callback) {
function(err, resp, body) {
if (err) return callback(err);
callback(null, JSON.parse(body).available_languages.map(function(d) {
return d.code;
return d.code.replace(/_/g, '-');
}).filter(function(d) {
return d !== 'en';
}));