bug: trim lang locale

This commit is contained in:
Kieran 2023-02-06 22:06:47 +00:00
parent a230b2ce61
commit 79008c5fc4
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export default function NoteFooter(props: NoteFooterProps) {
body: JSON.stringify({
q: ev.Content,
source: "auto",
target: lang,
target: lang.split("-")[0],
}),
headers: { "Content-Type": "application/json" }
});