diff --git a/app/islands/TranslatorButton.tsx b/app/islands/TranslatorButton.tsx index d761cda..3561bc0 100644 --- a/app/islands/TranslatorButton.tsx +++ b/app/islands/TranslatorButton.tsx @@ -42,8 +42,8 @@ const TranslatorButton: FC = ({ content }) => { ) { // biome-ignore lint: lint/suspicious/noExplicitAny const translator = await (self.translation as any).createTranslator({ - sourceLanguage: "en", - targetLanguage: "fr", + sourceLanguage: value, + targetLanguage: e.target.value, }); await translator.translate(content); } else {