Skip to content

Commit

Permalink
Hardcode ckb as RTL and ku as LTR
Browse files Browse the repository at this point in the history
(closes #4783)
  • Loading branch information
bhousel committed Mar 6, 2018
1 parent 5534f1e commit 13789cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"rtl": false
},
"ckb": {
"rtl": false
"rtl": true
},
"cs": {
"rtl": false
Expand Down Expand Up @@ -124,7 +124,7 @@
"rtl": false
},
"ku": {
"rtl": true
"rtl": false
},
"lij": {
"rtl": false
Expand Down
9 changes: 8 additions & 1 deletion data/update_locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ asyncMap(resources, getResource, function(err, locales) {
obj[code] = locale[code];
fs.writeFileSync(outdir + code + '.json', JSON.stringify(obj, null, 4));
getLanguageInfo(code, function(err, info) {
dataLocales[code] = { rtl: info && info.rtl };
var rtl = info && info.rtl;
// exceptions: see #4783
if (code === 'ckb') {
rtl = true;
} else if (code === 'ku') {
rtl = false;
}
dataLocales[code] = { rtl: rtl };
done();
});
}
Expand Down

0 comments on commit 13789cc

Please sign in to comment.