From 314cd693288dc580bc58d691e3ded9c5f96a6581 Mon Sep 17 00:00:00 2001 From: yossydev Date: Sun, 17 Nov 2024 15:38:16 +0900 Subject: [PATCH] chore: language option --- app/islands/TranslatorButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {