mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
LibreTranslate zh-CN aliased
This commit is contained in:
@@ -19,6 +19,10 @@ router.post('/libre', jsonParser, async (request, response) => {
|
|||||||
return response.sendStatus(400);
|
return response.sendStatus(400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (request.body.lang === 'zh-CN' || request.body.lang === 'zh-TW') {
|
||||||
|
request.body.lang = 'zh';
|
||||||
|
}
|
||||||
|
|
||||||
const text = request.body.text;
|
const text = request.body.text;
|
||||||
const lang = request.body.lang;
|
const lang = request.body.lang;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user