fix: unable to translate texts into English
Language code 'en' is deprecated in the DeepL API
This commit is contained in:
parent
23ab5567dd
commit
27aeca9c2d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue