Add missing translations to fixed collection

This commit is contained in:
Iván Ovejero 2021-11-23 13:28:42 +01:00
parent d006234790
commit 709e71e76a
3 changed files with 11 additions and 5 deletions

View file

@ -6,7 +6,7 @@
<div v-for="property in getProperties" :key="property.name" class="fixed-collection-parameter-property"> <div v-for="property in getProperties" :key="property.name" class="fixed-collection-parameter-property">
<n8n-input-label <n8n-input-label
:label="property.displayName === '' || parameter.options.length === 1 ? '' : property.displayName" :label="property.displayName === '' || parameter.options.length === 1 ? '' : $nodeText.topParameterDisplayName(property)"
:underline="true" :underline="true"
:labelHoverableOnly="true" :labelHoverableOnly="true"
size="small" size="small"
@ -15,10 +15,10 @@
<div v-for="(value, index) in values[property.name]" :key="property.name + index" class="parameter-item"> <div v-for="(value, index) in values[property.name]" :key="property.name + index" class="parameter-item">
<div class="parameter-item-wrapper"> <div class="parameter-item-wrapper">
<div class="delete-option" v-if="!isReadOnly"> <div class="delete-option" v-if="!isReadOnly">
<font-awesome-icon icon="trash" class="reset-icon clickable" title="Delete Item" @click="deleteOption(property.name, index)" /> <font-awesome-icon icon="trash" class="reset-icon clickable" :title="$baseText('fixedCollectionParameter.deleteItem')" @click="deleteOption(property.name, index)" />
<div v-if="sortable" class="sort-icon"> <div v-if="sortable" class="sort-icon">
<font-awesome-icon v-if="index !== 0" icon="angle-up" class="clickable" title="Move up" @click="moveOptionUp(property.name, index)" /> <font-awesome-icon v-if="index !== 0" icon="angle-up" class="clickable" :title="$baseText('fixedCollectionParameter.moveUp')" @click="moveOptionUp(property.name, index)" />
<font-awesome-icon v-if="index !== (values[property.name].length -1)" icon="angle-down" class="clickable" title="Move down" @click="moveOptionDown(property.name, index)" /> <font-awesome-icon v-if="index !== (values[property.name].length -1)" icon="angle-down" class="clickable" :title="$baseText('fixedCollectionParameter.moveDown')" @click="moveOptionDown(property.name, index)" />
</div> </div>
</div> </div>
<parameter-input-list :parameters="property.values" :nodeValues="nodeValues" :path="getPropertyPath(property.name, index)" :hideDelete="true" @valueChanged="valueChanged" /> <parameter-input-list :parameters="property.values" :nodeValues="nodeValues" :path="getPropertyPath(property.name, index)" :hideDelete="true" @valueChanged="valueChanged" />
@ -28,7 +28,7 @@
<div v-else class="parameter-item"> <div v-else class="parameter-item">
<div class="parameter-item-wrapper"> <div class="parameter-item-wrapper">
<div class="delete-option" v-if="!isReadOnly"> <div class="delete-option" v-if="!isReadOnly">
<font-awesome-icon icon="trash" class="reset-icon clickable" title="Delete Item" @click="deleteOption(property.name)" /> <font-awesome-icon icon="trash" class="reset-icon clickable" :title="$baseText('fixedCollectionParameter.deleteItem')" @click="deleteOption(property.name)" />
</div> </div>
<parameter-input-list :parameters="property.values" :nodeValues="nodeValues" :path="getPropertyPath(property.name)" class="parameter-item" @valueChanged="valueChanged" :hideDelete="true" /> <parameter-input-list :parameters="property.values" :nodeValues="nodeValues" :path="getPropertyPath(property.name)" class="parameter-item" @valueChanged="valueChanged" :hideDelete="true" />
</div> </div>

View file

@ -394,6 +394,9 @@ export default {
fixedCollectionParameter: { fixedCollectionParameter: {
choose: '🇩🇪 Choose...', choose: '🇩🇪 Choose...',
currentlyNoItemsExist: '🇩🇪 Currently no items exist', currentlyNoItemsExist: '🇩🇪 Currently no items exist',
deleteItem: '🇩🇪 Delete item',
moveUp: '🇩🇪 Move up',
moveDown: '🇩🇪 Move down',
}, },
genericHelpers: { genericHelpers: {
showMessage: { showMessage: {

View file

@ -389,6 +389,9 @@ export default {
fixedCollectionParameter: { fixedCollectionParameter: {
choose: 'Choose...', choose: 'Choose...',
currentlyNoItemsExist: 'Currently no items exist', currentlyNoItemsExist: 'Currently no items exist',
deleteItem: 'Delete item',
moveUp: 'Move up',
moveDown: 'Move down',
}, },
genericHelpers: { genericHelpers: {
showMessage: { showMessage: {