Skip to content

Commit

Permalink
chore: language option
Browse files Browse the repository at this point in the history
  • Loading branch information
yossydev committed Nov 17, 2024
1 parent 7eec7c5 commit 314cd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/islands/TranslatorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const TranslatorButton: FC<Props> = ({ 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 {
Expand Down

0 comments on commit 314cd69

Please sign in to comment.