Skip to content

Commit

Permalink
fix: support korean stores (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephemera authored and Ephigenia committed Jul 3, 2018
1 parent 3bae690 commit 560d037
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/cli-stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ program
productId = 'S79197598';
break;
case 'kr':
productId = 'S79197598';
productId = '90251046';
break;
case 'aa':
case 'au':
Expand Down
2 changes: 2 additions & 0 deletions source/data/buCodes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
343,München-Brunnthal,de
345,Clermont-Ferrand,fr
369,Siegen,de
373,Gwangmyeong,kr
375,Hognoul,be
376,Zaventem,be
378,Haarlem,nl
Expand Down Expand Up @@ -128,5 +129,6 @@
435,Grenoble,fr
482,Anderlecht,be
483,Arlon,be
522,Goyang,kr
917,St. Gallen SG (de),ch
918,Vernier GE (fr),ch
1 change: 1 addition & 0 deletions source/data/stores.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{"buCode":"457","name":"Ancona","countryCode":"it"},{"buCode":"356","name":"Bari","countryCode":"it"},{"buCode":"231","name":"Bologna Casalecchio","countryCode":"it"},{"buCode":"354","name":"Brescia Roncadelle","countryCode":"it"},{"buCode":"098","name":"Catania","countryCode":"it"},{"buCode":"029","name":"Chieti S.G. Teatino","countryCode":"it"},{"buCode":"352","name":"Firenze Sesto F.no","countryCode":"it"},{"buCode":"232","name":"Genova","countryCode":"it"},{"buCode":"116","name":"Gorizia_Villesse","countryCode":"it"},{"buCode":"233","name":"Milano Carugate","countryCode":"it"},{"buCode":"455","name":"Milano Corsico","countryCode":"it"},{"buCode":"295","name":"Milano San Giuliano","countryCode":"it"},{"buCode":"353","name":"Napoli Afragola","countryCode":"it"},{"buCode":"355","name":"Padova","countryCode":"it"},{"buCode":"303","name":"Parma","countryCode":"it"},{"buCode":"314","name":"Pisa","countryCode":"it"},{"buCode":"111","name":"Rimini","countryCode":"it"},{"buCode":"234","name":"Roma Anagnina","countryCode":"it"},{"buCode":"427","name":"Roma Porta di Roma","countryCode":"it"},{"buCode":"458","name":"Salerno Baronissi","countryCode":"it"},{"buCode":"456","name":"Torino Collegno","countryCode":"it"},
{"buCode":"447","name":"Tokyo-Bay","countryCode":"jp"},{"buCode":"448","name":"港北","countryCode":"jp"},{"buCode":"887","name":"新三郷","countryCode":"jp"},{"buCode":"486","name":"神戸","countryCode":"jp"},{"buCode":"392","name":"仙台","countryCode":"jp"},{"buCode":"496","name":"鶴浜","countryCode":"jp"},{"buCode":"189","name":"福岡新宮","countryCode":"jp"},{"buCode":"359","name":"立川","countryCode":"jp"},
{"buCode":"373","name":"Gwangmyeong","countryCode":"kr"},
{"buCode":"522","name":"Goyang","countryCode":"kr"},
{"buCode":"219","name":"Kuwait","countryCode":"kw"},
{"buCode":"235","name":"Vilnius","countryCode":"lt"},
{"buCode":"415","name":"Amersfoort","countryCode":"nl"},{"buCode":"088","name":"Amsterdam","countryCode":"nl"},{"buCode":"274","name":"Barendrecht (Rotterdam)","countryCode":"nl"},{"buCode":"403","name":"Breda","countryCode":"nl"},{"buCode":"151","name":"Delft","countryCode":"nl"},{"buCode":"272","name":"Duiven","countryCode":"nl"},{"buCode":"087","name":"Eindhoven","countryCode":"nl"},{"buCode":"404","name":"Groningen","countryCode":"nl"},{"buCode":"378","name":"Haarlem","countryCode":"nl"},{"buCode":"089","name":"Heerlen","countryCode":"nl"},{"buCode":"312","name":"Hengelo","countryCode":"nl"},{"buCode":"270","name":"Utrecht","countryCode":"nl"},{"buCode":"391","name":"Zwolle","countryCode":"nl"},
Expand Down
2 changes: 1 addition & 1 deletion source/lib/stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
languageCode = 'ja';
break;
case 'kr':
languageCode = 'en';
languageCode = 'ko';
break;
case 'se':
languageCode = 'sv';
Expand Down
4 changes: 2 additions & 2 deletions source/lib/stores.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ describe('stores', function() {
it('returns "en" for "lio"', () => {
expect(stores.getLanguageCode('lio')).to.equal('en');
});
it('returns "en" for "kr"', () => {
expect(stores.getLanguageCode('kr')).to.equal('en');
it('returns "ko" for "kr"', () => {
expect(stores.getLanguageCode('kr')).to.equal('ko');
});
});
});

0 comments on commit 560d037

Please sign in to comment.