Skip to content

Commit

Permalink
Merge pull request SillyTavern#1301 from zgce/release
Browse files Browse the repository at this point in the history
fix the deeplx for chinese parameter
  • Loading branch information
Cohee1207 authored Oct 30, 2023
2 parents 1b1f3e9 + 0921cd6 commit 064d331
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ function registerEndpoints(app, jsonParser) {
}

const text = request.body.text;
const lang = request.body.lang;
let lang = request.body.lang;
if (request.body.lang === 'zh-CN') {
lang = 'ZH'
}

if (!text || !lang) {
return response.sendStatus(400);
Expand Down

0 comments on commit 064d331

Please sign in to comment.