feat(#22): Use translation keys in files

This commit is contained in:
2025-11-21 19:20:19 +01:00
parent 63023f4f9f
commit 81b1227e82
28 changed files with 497 additions and 195 deletions

View File

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