🚚 Rename $i18n2 to $i

This commit is contained in:
Iván Ovejero
2021-12-07 17:28:10 +01:00
parent 858d0d0160
commit 94d6136661
66 changed files with 717 additions and 719 deletions

View File

@@ -3,7 +3,7 @@
:name="modalName"
:eventBus="modalBus"
@enter="save"
:title="$i18n2.baseText('duplicateWorkflowDialog.duplicateWorkflow')"
:title="$i.baseText('duplicateWorkflowDialog.duplicateWorkflow')"
:center="true"
minWidth="420px"
maxWidth="420px"
@@ -13,7 +13,7 @@
<n8n-input
v-model="name"
ref="nameInput"
:placeholder="$i18n2.baseText('duplicateWorkflowDialog.enterWorkflowName')"
:placeholder="$i.baseText('duplicateWorkflowDialog.enterWorkflowName')"
:maxlength="MAX_WORKFLOW_NAME_LENGTH"
/>
<TagsDropdown
@@ -23,15 +23,15 @@
@blur="onTagsBlur"
@esc="onTagsEsc"
@update="onTagsUpdate"
:placeholder="$i18n2.baseText('duplicateWorkflowDialog.chooseOrCreateATag')"
:placeholder="$i.baseText('duplicateWorkflowDialog.chooseOrCreateATag')"
ref="dropdown"
/>
</div>
</template>
<template v-slot:footer="{ close }">
<div :class="$style.footer">
<n8n-button @click="save" :loading="isSaving" :label="$i18n2.baseText('duplicateWorkflowDialog.save')" float="right" />
<n8n-button type="outline" @click="close" :disabled="isSaving" :label="$i18n2.baseText('duplicateWorkflowDialog.cancel')" float="right" />
<n8n-button @click="save" :loading="isSaving" :label="$i.baseText('duplicateWorkflowDialog.save')" float="right" />
<n8n-button type="outline" @click="close" :disabled="isSaving" :label="$i.baseText('duplicateWorkflowDialog.cancel')" float="right" />
</div>
</template>
</Modal>
@@ -101,8 +101,8 @@ export default mixins(showMessage, workflowHelpers).extend({
const name = this.name.trim();
if (!name) {
this.$showMessage({
title: this.$i18n2.baseText('duplicateWorkflowDialog.showMessage.title'),
message: this.$i18n2.baseText('duplicateWorkflowDialog.showMessage.message'),
title: this.$i.baseText('duplicateWorkflowDialog.showMessage.title'),
message: this.$i.baseText('duplicateWorkflowDialog.showMessage.message'),
type: "error",
});