🚚 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

@@ -5,7 +5,7 @@
<display-with-change :key-name="'name'" @valueChanged="valueChanged"></display-with-change>
<a v-if="nodeType" :href="'http://n8n.io/nodes/' + nodeType.name" target="_blank" class="node-info">
<n8n-tooltip class="clickable" placement="top" >
<div slot="content" v-html="`<strong>${$i18n2.baseText('nodeSettings.nodeDescription')}:</strong><br />` + nodeTypeDescription + `<br /><br /><strong>${$i18n2.baseText('nodeSettings.clickOnTheQuestionMarkIcon')}</strong>`"></div>
<div slot="content" v-html="`<strong>${$i.baseText('nodeSettings.nodeDescription')}:</strong><br />` + nodeTypeDescription + `<br /><br /><strong>${$i.baseText('nodeSettings.clickOnTheQuestionMarkIcon')}</strong>`"></div>
<font-awesome-icon icon="question-circle" />
</n8n-tooltip>
</a>
@@ -14,7 +14,7 @@
<div class="node-is-not-valid" v-if="node && !nodeValid">
<n8n-text>
{{
$i18n2.baseText(
$i.baseText(
'nodeSettings.theNodeIsNotValidAsItsTypeIsUnknown',
{ interpolate: { nodeType: node.type } },
)
@@ -23,17 +23,17 @@
</div>
<div class="node-parameters-wrapper" v-if="node && nodeValid">
<el-tabs stretch @tab-click="handleTabClick">
<el-tab-pane :label="$i18n2.baseText('nodeSettings.parameters')">
<el-tab-pane :label="$i.baseText('nodeSettings.parameters')">
<node-credentials :node="node" @credentialSelected="credentialSelected"></node-credentials>
<node-webhooks :node="node" :nodeType="nodeType" />
<parameter-input-list :parameters="parametersNoneSetting" :hideDelete="true" :nodeValues="nodeValues" path="parameters" @valueChanged="valueChanged" />
<div v-if="parametersNoneSetting.length === 0" class="no-parameters">
<n8n-text>
{{ $i18n2.baseText('nodeSettings.thisNodeDoesNotHaveAnyParameters') }}
{{ $i.baseText('nodeSettings.thisNodeDoesNotHaveAnyParameters') }}
</n8n-text>
</div>
</el-tab-pane>
<el-tab-pane :label="$i18n2.baseText('nodeSettings.settings')">
<el-tab-pane :label="$i.baseText('nodeSettings.settings')">
<parameter-input-list :parameters="nodeSettings" :hideDelete="true" :nodeValues="nodeValues" path="" @valueChanged="valueChanged" />
<parameter-input-list :parameters="parametersSetting" :nodeValues="nodeValues" path="parameters" @valueChanged="valueChanged" />
</el-tab-pane>
@@ -97,9 +97,9 @@ export default mixins(
},
nodeTypeName(): string {
if (this.nodeType) {
const shortNodeType = this.$i18n2.shortNodeType(this.nodeType.name);
const shortNodeType = this.$i.shortNodeType(this.nodeType.name);
return this.$i18n2.headerText({
return this.$i.headerText({
key: `headers.${shortNodeType}.displayName`,
fallback: this.nodeType.name,
});
@@ -109,14 +109,14 @@ export default mixins(
},
nodeTypeDescription (): string {
if (this.nodeType && this.nodeType.description) {
const shortNodeType = this.$i18n2.shortNodeType(this.nodeType.name);
const shortNodeType = this.$i.shortNodeType(this.nodeType.name);
return this.$i18n2.headerText({
return this.$i.headerText({
key: `headers.${shortNodeType}.description`,
fallback: this.nodeType.description,
});
} else {
return this.$i18n2.baseText('nodeSettings.noDescriptionFound');
return this.$i.baseText('nodeSettings.noDescriptionFound');
}
},
headerStyle (): object {
@@ -171,7 +171,7 @@ export default mixins(
nodeSettings: [
{
displayName: this.$i18n2.baseText('nodeSettings.notes.displayName'),
displayName: this.$i.baseText('nodeSettings.notes.displayName'),
name: 'notes',
type: 'string',
typeOptions: {
@@ -179,50 +179,50 @@ export default mixins(
},
default: '',
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.notes.description'),
description: this.$i.baseText('nodeSettings.notes.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.notesInFlow.displayName'),
displayName: this.$i.baseText('nodeSettings.notesInFlow.displayName'),
name: 'notesInFlow',
type: 'boolean',
default: false,
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.notesInFlow.description'),
description: this.$i.baseText('nodeSettings.notesInFlow.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.color.displayName'),
displayName: this.$i.baseText('nodeSettings.color.displayName'),
name: 'color',
type: 'color',
default: '#ff0000',
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.color.description'),
description: this.$i.baseText('nodeSettings.color.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.alwaysOutputData.displayName'),
displayName: this.$i.baseText('nodeSettings.alwaysOutputData.displayName'),
name: 'alwaysOutputData',
type: 'boolean',
default: false,
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.alwaysOutputData.description'),
description: this.$i.baseText('nodeSettings.alwaysOutputData.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.executeOnce.displayName'),
displayName: this.$i.baseText('nodeSettings.executeOnce.displayName'),
name: 'executeOnce',
type: 'boolean',
default: false,
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.executeOnce.description'),
description: this.$i.baseText('nodeSettings.executeOnce.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.retryOnFail.displayName'),
displayName: this.$i.baseText('nodeSettings.retryOnFail.displayName'),
name: 'retryOnFail',
type: 'boolean',
default: false,
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.retryOnFail.description'),
description: this.$i.baseText('nodeSettings.retryOnFail.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.maxTries.displayName'),
displayName: this.$i.baseText('nodeSettings.maxTries.displayName'),
name: 'maxTries',
type: 'number',
typeOptions: {
@@ -238,10 +238,10 @@ export default mixins(
},
},
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.maxTries.description'),
description: this.$i.baseText('nodeSettings.maxTries.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.waitBetweenTries.displayName'),
displayName: this.$i.baseText('nodeSettings.waitBetweenTries.displayName'),
name: 'waitBetweenTries',
type: 'number',
typeOptions: {
@@ -257,15 +257,15 @@ export default mixins(
},
},
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.waitBetweenTries.description'),
description: this.$i.baseText('nodeSettings.waitBetweenTries.description'),
},
{
displayName: this.$i18n2.baseText('nodeSettings.continueOnFail.displayName'),
displayName: this.$i.baseText('nodeSettings.continueOnFail.displayName'),
name: 'continueOnFail',
type: 'boolean',
default: false,
noDataExpression: true,
description: this.$i18n2.baseText('nodeSettings.continueOnFail.description'),
description: this.$i.baseText('nodeSettings.continueOnFail.description'),
},
] as INodeProperties[],