LibreTranslate zh-CN aliased
This commit is contained in:
parent
891077be43
commit
5a2dad48f2
|
@ -19,6 +19,10 @@ router.post('/libre', jsonParser, async (request, response) => {
|
|||
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 lang = request.body.lang;
|
||||
|
||||
|
|
Loading…
Reference in New Issue