bug: trim lang locale
This commit is contained in:
parent
a230b2ce61
commit
79008c5fc4
@ -168,7 +168,7 @@ export default function NoteFooter(props: NoteFooterProps) {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
q: ev.Content,
|
q: ev.Content,
|
||||||
source: "auto",
|
source: "auto",
|
||||||
target: lang,
|
target: lang.split("-")[0],
|
||||||
}),
|
}),
|
||||||
headers: { "Content-Type": "application/json" }
|
headers: { "Content-Type": "application/json" }
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user