Skip to content

Commit 002ea16

Browse files
committed
Update translation UI response format
1 parent 0736912 commit 002ea16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Translation/ui/svelte/src/lib/shared/Network.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ export async function fetchLanguageResponse(input: string, transform: string, tr
2323
payload = {
2424
language_from: transform,
2525
language_to: transTo,
26-
source_language: input,
26+
source_data: input,
27+
translate_type: "text",
2728
};
2829
url = `${BASE_URL}`;
2930

3031
return new SSE(url, {
3132
headers: { "Content-Type": "application/json" },
3233
payload: JSON.stringify(payload),
3334
});
34-
}
35+
}

0 commit comments

Comments
 (0)