chore: update nuxt-vitest

This commit is contained in:
Daniel Roe 2023-08-01 10:36:19 +01:00
parent 5870e8d6e6
commit e6172ad38b
4 changed files with 38 additions and 197 deletions

View file

@ -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
}