diff --git a/packages/backend/src/misc/translate.ts b/packages/backend/src/misc/translate.ts index e0a75bbc..07f5ff2b 100644 --- a/packages/backend/src/misc/translate.ts +++ b/packages/backend/src/misc/translate.ts @@ -78,7 +78,7 @@ export default async function ( const result = await deeplTranslator.translateText( text, source as deepl.SourceLanguageCode | null, - target as deepl.TargetLanguageCode, + (target === "en" ? to : target) as deepl.TargetLanguageCode, ); return {