이유혁

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) {
//번역은 한국어->영어 / 영어->한국어만 지원
if(detect_body.langCode == 'ko'||detect_body.langCode == 'en'){
source = detect_body.langCode == 'ko' ? 'ko':'en';
target = source == 'ko' ? 'en':'ko';
if(detect_body.langCode == 'ko'||detect_body.langCode == 'en'||detect_body.langCode=='ru'||detect_body.langCode=='ja'){
source = detect_body.langCode;
if(source!='ko'){
target='ko';
}
// target = source == 'ko' ? 'en':'ko';
//papago 번역 option
var options = {
url: translate_api_url,
......