chore: update nuxt-vitest
This commit is contained in:
parent
5870e8d6e6
commit
e6172ad38b
4 changed files with 38 additions and 197 deletions
|
@ -66,7 +66,7 @@ export async function translateText(text: string, from: string | null | undefine
|
|||
text: '',
|
||||
})
|
||||
try {
|
||||
const response = await $fetch<TranslationResponse>(config.public.translateApi, {
|
||||
const response = await $fetch(config.public.translateApi, {
|
||||
method: 'POST',
|
||||
body: {
|
||||
q: text,
|
||||
|
@ -75,7 +75,7 @@ export async function translateText(text: string, from: string | null | undefine
|
|||
format: 'html',
|
||||
api_key: '',
|
||||
},
|
||||
})
|
||||
}) as TranslationResponse
|
||||
status.success = true
|
||||
status.text = response.translatedText
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue