🚚 Rename $i to $locale

This commit is contained in:
Iván Ovejero
2021-12-15 13:16:53 +01:00
parent cd1bfe5365
commit 1d991824d1
66 changed files with 711 additions and 711 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div @keydown.stop class="variable-selector-wrapper">
<div class="input-wrapper">
<n8n-input :placeholder="$i.baseText('variableSelector.variableFilter')" v-model="variableFilter" ref="inputField" size="small" type="text"></n8n-input>
<n8n-input :placeholder="$locale.baseText('variableSelector.variableFilter')" v-model="variableFilter" ref="inputField" size="small" type="text"></n8n-input>
</div>
<div class="result-wrapper">
@@ -525,14 +525,14 @@ export default mixins(
currentNodeData.push(
{
name: this.$i.baseText('variableSelector.parameters'),
name: this.$locale.baseText('variableSelector.parameters'),
options: this.sortOptions(this.getNodeParameters(activeNode.name, initialPath, skipParameter, filterText) as IVariableSelectorOption[]),
},
);
returnData.push(
{
name: this.$i.baseText('variableSelector.currentNode'),
name: this.$locale.baseText('variableSelector.currentNode'),
options: this.sortOptions(currentNodeData),
},
);
@@ -557,7 +557,7 @@ export default mixins(
nodeOptions = [
{
name: this.$i.baseText('variableSelector.parameters'),
name: this.$locale.baseText('variableSelector.parameters'),
options: this.sortOptions(this.getNodeParameters(nodeName, `$node["${nodeName}"].parameter`, undefined, filterText)),
} as IVariableSelectorOption,
];
@@ -570,7 +570,7 @@ export default mixins(
if (tempOptions.length) {
nodeOptions = [
{
name: this.$i.baseText('variableSelector.context'),
name: this.$locale.baseText('variableSelector.context'),
options: this.sortOptions(tempOptions),
} as IVariableSelectorOption,
];
@@ -583,18 +583,18 @@ export default mixins(
if (tempOutputData) {
nodeOptions.push(
{
name: this.$i.baseText('variableSelector.outputData'),
name: this.$locale.baseText('variableSelector.outputData'),
options: this.sortOptions(tempOutputData),
} as IVariableSelectorOption,
);
}
}
const shortNodeType = this.$i.shortNodeType(node.type);
const shortNodeType = this.$locale.shortNodeType(node.type);
allNodesData.push(
{
name: this.$i.headerText({
name: this.$locale.headerText({
key: `headers.${shortNodeType}.displayName`,
fallback: nodeName,
}),
@@ -605,7 +605,7 @@ export default mixins(
returnData.push(
{
name: this.$i.baseText('variableSelector.nodes'),
name: this.$locale.baseText('variableSelector.nodes'),
options: this.sortOptions(allNodesData),
},
);