diff --git a/packages/backend/src/misc/translate.ts b/packages/backend/src/misc/translate.ts index e0a75bbcc..07f5ff2b0 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 {