From 9f5ad9b15399c1de5f0e8bb6d1bfeaf643d12c55 Mon Sep 17 00:00:00 2001 From: yossydev Date: Sun, 17 Nov 2024 15:43:54 +0900 Subject: [PATCH] chore: sourceLanguage ja --- app/islands/TranslatorButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/islands/TranslatorButton.tsx b/app/islands/TranslatorButton.tsx index c6ab9df..f7b3c6e 100644 --- a/app/islands/TranslatorButton.tsx +++ b/app/islands/TranslatorButton.tsx @@ -42,7 +42,7 @@ const TranslatorButton: FC = ({ content }) => { ) { // biome-ignore lint: lint/suspicious/noExplicitAny const translator = await (self.translation as any).createTranslator({ - sourceLanguage: value, + sourceLanguage: "ja", targetLanguage: e.target.value, }); await translator.translate(content);