Skip to content

Commit

Permalink
Feat/nuxt look forward (#6)
Browse files Browse the repository at this point in the history
* feat: Перевод статьи про релизы

* feat: Мелкие переводы

* feat: Исправлена орфографическая ошибка

---------

Co-authored-by: artemktn <[email protected]>
  • Loading branch information
Hekikai and artemktn authored Jun 5, 2024
1 parent 56cc5e8 commit 2d6b594
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 82 deletions.
8 changes: 4 additions & 4 deletions components/newsletter/NewsletterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function onSubmit() {
method: 'POST',
body: { email: email.value }
}).then(() => {
toast.add({ title: 'Subscription pending', description: 'Please check your emails to confirm your subscription.', color: 'green' })
toast.add({ title: 'Подписка ожидается', description: 'Пожалуйста, проверьте свою электронную почту, чтобы подтвердить подписку.', color: 'green' })
email.value = ''
}).catch((err) => {
const description = err.data?.message || 'Something went wrong. Please try again later.'
toast.add({ title: 'Subscription failed', description, color: 'red' })
const description = err.data?.message || 'Что-то пошло не так. Пожалуйста, повторите попытку позже.'
toast.add({ title: 'Подписка не удалась', description, color: 'red' })
}).finally(() => {
loading.value = false
})
Expand All @@ -49,7 +49,7 @@ function onSubmit() {
class="max-w-sm"
>
<template #trailing>
<UButton type="submit" size="xs" color="black" :label="loading ? 'Subscribing' : 'Subscribe'" :loading="loading" />
<UButton type="submit" size="xs" color="black" :label="loading ? 'Подписываемся' : 'Подпишись'" :loading="loading" />
</template>
</UInput>
</UFormGroup>
Expand Down
Loading

0 comments on commit 2d6b594

Please sign in to comment.