diff --git a/lib/i18n/traditional-chinese.js b/lib/i18n/traditional-chinese.js index 1c596318f..2f09d45e8 100644 --- a/lib/i18n/traditional-chinese.js +++ b/lib/i18n/traditional-chinese.js @@ -20,15 +20,14 @@ var keys = [ ["powerpost","焦點"],["capital weather gang","首都 天氣"],["morning mix","晨間 新聞"],["wonkblog"],["world news","世界 新聞"],["us business","美國 商業"],["markets","市場"], ["technology","科技"],["cat","貓"],["dog","狗"],["horse","馬"],["snail","蝸牛"],["year","年"],["yoda","尤達"],["shakespeare","莎士比亞"],["vulcan","瓦肯人"],["klingon","克林貢"], ["viral","傳閱"],["rising","上升"],["uber_black","尊榮"] -] +]; function postprocessSynthetic(sentence, program) { // We need a dummy postprocessSynthetic() here keys.forEach(function(key) { var re = new RegExp("\\b" + key[0] + "\\b", "g"); - if(sentence.match(re)){ - sentence = sentence.replace(key[0], key[1]) - } + if(sentence.match(re)) + sentence = sentence.replace(key[0], key[1]); }); return sentence; }