diff --git a/legalconsenthub/app/components/DeleteModal.vue b/legalconsenthub/app/components/DeleteModal.vue index c89519a..29594fb 100644 --- a/legalconsenthub/app/components/DeleteModal.vue +++ b/legalconsenthub/app/components/DeleteModal.vue @@ -1,11 +1,11 @@ diff --git a/legalconsenthub/app/components/FormEngine.vue b/legalconsenthub/app/components/FormEngine.vue index 60f21d1..56643e2 100644 --- a/legalconsenthub/app/components/FormEngine.vue +++ b/legalconsenthub/app/components/FormEngine.vue @@ -92,18 +92,19 @@ function getResolvedComponent(formElement: FormElementDto) { } function getDropdownItems(formElementId: string, formElementPosition: number): DropdownMenuItem[] { + const { t: $t } = useI18n() const items = [] if (route.path !== '/create') { items.push({ - label: 'Comments', + label: $t('applicationForms.formElements.comments'), icon: 'i-lucide-message-square-more', onClick: () => toggleComments(formElementId) }) } items.push({ - label: 'Add input field below', + label: $t('applicationForms.formElements.addInputBelow'), icon: 'i-lucide-list-plus', onClick: () => emit('add:input-form', formElementPosition) }) diff --git a/legalconsenthub/app/components/FormStepperWithNavigation.vue b/legalconsenthub/app/components/FormStepperWithNavigation.vue index b6f31f4..bb88aea 100644 --- a/legalconsenthub/app/components/FormStepperWithNavigation.vue +++ b/legalconsenthub/app/components/FormStepperWithNavigation.vue @@ -30,7 +30,7 @@
- Prev + {{ $t('applicationForms.navigation.previous') }} - Next + {{ $t('applicationForms.navigation.next') }}
- Save + {{ $t('applicationForms.navigation.save') }} - Submit + {{ $t('applicationForms.navigation.submit') }}
diff --git a/legalconsenthub/app/components/FormValidationIndicator.vue b/legalconsenthub/app/components/FormValidationIndicator.vue index 19d865b..59cb023 100644 --- a/legalconsenthub/app/components/FormValidationIndicator.vue +++ b/legalconsenthub/app/components/FormValidationIndicator.vue @@ -1,13 +1,7 @@ @@ -75,16 +58,18 @@ const shieldIcon = computed(() => { } }) +const { t: $t } = useI18n() + const statusLabel = computed(() => { switch (props.status) { case ComplianceStatus.Critical: - return 'Kritisch' + return $t('compliance.critical') case ComplianceStatus.Warning: - return 'Warnung' + return $t('compliance.warning') case ComplianceStatus.NonCritical: - return 'Unkritisch' + return $t('compliance.nonCritical') default: - return 'Unkritisch' + return $t('compliance.nonCritical') } }) @@ -144,15 +129,18 @@ const progressOffset = computed(() => { return circumference - (progressValue.value / 100) * circumference }) -watch(() => props.status, () => { - const element = document.querySelector('.shield-ring') - if (element) { - element.classList.add('status-change-pulse') - setTimeout(() => { - element.classList.remove('status-change-pulse') - }, 600) +watch( + () => props.status, + () => { + const element = document.querySelector('.shield-ring') + if (element) { + element.classList.add('status-change-pulse') + setTimeout(() => { + element.classList.remove('status-change-pulse') + }, 600) + } } -}) +) - diff --git a/legalconsenthub/app/components/NotificationsSlideover.vue b/legalconsenthub/app/components/NotificationsSlideover.vue index a7e501f..f98e0a7 100644 --- a/legalconsenthub/app/components/NotificationsSlideover.vue +++ b/legalconsenthub/app/components/NotificationsSlideover.vue @@ -1,9 +1,9 @@ - Submit - Edit comment - Cancel + + {{ $t('comments.submit') }} + + {{ $t('comments.edit') }} + {{ $t('common.cancel') }}