Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Isayama-Kagura committed Oct 31, 2020
1 parent d2f266b commit 0725877
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions config/yeekitApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ var requestTranslation = function (){
'targetLang':'nzh'
}
}).then(string => {
json=JSON.parse(string);
var json=JSON.parse(string);
json = json[0];
json=JSON.parse(json);
json = json.translation;
json = json[0];
json = (json.translation)[0];
json = (json.translated)[0];

json = json.translated;
json = json[0];
var result = json.text;
callback(result);

Expand Down

0 comments on commit 0725877

Please sign in to comment.