feat(#22): Use translation keys in files
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user