이유혁

Merge branch 'develop' of ssh://khuhub.khu.ac.kr:12959/2015104204/OSS_Project_Chatbot into develop

Showing 1 changed file with 6 additions and 3 deletions
...@@ -72,9 +72,12 @@ function handleEvent(event) { ...@@ -72,9 +72,12 @@ function handleEvent(event) {
72 72
73 73
74 //번역은 한국어->영어 / 영어->한국어만 지원 74 //번역은 한국어->영어 / 영어->한국어만 지원
75 - if(detect_body.langCode == 'ko'||detect_body.langCode == 'en'){ 75 + if(detect_body.langCode == 'ko'||detect_body.langCode == 'en'||detect_body.langCode=='ru'||detect_body.langCode=='ja'){
76 - source = detect_body.langCode == 'ko' ? 'ko':'en'; 76 + source = detect_body.langCode;
77 - target = source == 'ko' ? 'en':'ko'; 77 + if(source!='ko'){
78 + target='ko';
79 + }
80 + // target = source == 'ko' ? 'en':'ko';
78 //papago 번역 option 81 //papago 번역 option
79 var options = { 82 var options = {
80 url: translate_api_url, 83 url: translate_api_url,
......