diff --git a/resources/js/components/AppearanceTabs.vue b/resources/js/components/AppearanceTabs.vue index d305c42..f848262 100644 --- a/resources/js/components/AppearanceTabs.vue +++ b/resources/js/components/AppearanceTabs.vue @@ -1,39 +1,80 @@ - - - - {{ t(label) }} - - + + {{ t('appearance.label') }} + + + + + + + + + + + {{ label }} + + {{ description }} + + + + + diff --git a/resources/js/components/DeleteUser.vue b/resources/js/components/DeleteUser.vue index 871fb5e..5227224 100644 --- a/resources/js/components/DeleteUser.vue +++ b/resources/js/components/DeleteUser.vue @@ -2,10 +2,10 @@ import { Form } from '@inertiajs/vue3'; import { useTemplateRef } from 'vue'; import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController'; -import Heading from '@/components/Heading.vue'; import InputError from '@/components/InputError.vue'; import PasswordInput from '@/components/PasswordInput.vue'; import { Button } from '@/components/ui/button'; +import { Card, CardContent, CardHeader } from '@/components/ui/card'; import { Dialog, DialogClose, @@ -17,97 +17,104 @@ import { DialogTrigger, } from '@/components/ui/dialog'; import { Label } from '@/components/ui/label'; +import { useLocalization } from '@/composables/useLocalization'; const passwordInput = useTemplateRef('passwordInput'); +const { t } = useLocalization(); - - - - - Warning - - Please proceed with caution, this cannot be undone. - - - - - Delete account - - - passwordInput?.focus()" - :options="{ - preserveScroll: true, - }" - class="space-y-6" - v-slot="{ errors, processing, reset, clearErrors }" - > - - Are you sure you want to delete your - account? - - Once your account is deleted, all of its - resources and data will also be permanently - deleted. Please enter your password to confirm - you would like to permanently delete your - account. - - + + + {{ t('profile.delete.title') }} + + {{ t('profile.delete.description') }} + + + + + + + {{ t('profile.delete.warning') }} + + + {{ t('profile.delete.warningDescription') }} + + + + + {{ t('profile.delete.action') }} + + + passwordInput?.focus()" + :options="{ + preserveScroll: true, + }" + class="space-y-6" + v-slot="{ errors, processing, reset, clearErrors }" + > + + {{ + t('profile.delete.confirmTitle') + }} + + {{ t('profile.delete.confirmDescription') }} + + - - Password - - - + + {{ + t('profile.delete.password') + }} + + + + + + + { + clearErrors(); + reset(); + } + " + > + {{ t('common.cancel') }} + + - - { - clearErrors(); - reset(); - } - " + type="submit" + variant="destructive" + :disabled="processing" + data-test="confirm-delete-user-button" > - Cancel + {{ t('profile.delete.confirmAction') }} - - - - Delete account - - - - - - - + + + + + + + diff --git a/resources/js/layouts/settings/Layout.vue b/resources/js/layouts/settings/Layout.vue index 959f144..3f5ddff 100644 --- a/resources/js/layouts/settings/Layout.vue +++ b/resources/js/layouts/settings/Layout.vue @@ -1,9 +1,14 @@ - - + + + + + + {{ t('settings.eyebrow') }} + + + + {{ t('navigation.settings') }} + + + {{ t('navigation.settingsDescription') }} + + - -
Warning
- Please proceed with caution, this cannot be undone. -
+ {{ t('profile.delete.description') }} +
+ {{ t('profile.delete.warning') }} +
+ {{ t('profile.delete.warningDescription') }} +
+ {{ t('settings.eyebrow') }} +
+ {{ t('navigation.settingsDescription') }} +