Update language code for Chinese translations(zh-TW) The code changes in `translate.js` update the language code for Chinese translations. The `zh-TW` language code is changed to `zt`. This ensures consistency and compatibility with the translation system(https://libretranslate.com/languages).

09b08a49d30dc0c53b05e25742a084eeee986f69

blackmesataiwan <20988581+blackmesataiwan@users.noreply.github.com>

1 files changed, +5 -1Showing whitespace changes
src/endpoints/translate.js+5 -1
@@ -19,10 +19,14 @@ router.post('/libre', jsonParser, async (request, response) => {
1919 return response.sendStatus(400);
2020 }
2121
2222 if (request.body.lang === 'zh-CN' || request.body.lang === 'zh-TW') {
2323 request.body.lang = 'zh';
2424 }
2525
26+ if (request.body.lang === 'zh-TW') {
27+ request.body.lang = 'zt';
28+ }
29+
2630 const text = request.body.text;
2731 const lang = request.body.lang;
2832