update keys

This commit is contained in:
Mutasem 2022-04-06 16:32:36 +02:00
parent 05aa2d5060
commit ae9bb9b02e
5 changed files with 59 additions and 59 deletions

View file

@ -8,10 +8,10 @@
append-to-body append-to-body
> >
<n8n-tooltip placement="bottom-start" :value="showTriggerWaitingWarning" :disabled="!showTriggerWaitingWarning" :manual="true"> <n8n-tooltip placement="bottom-start" :value="showTriggerWaitingWarning" :disabled="!showTriggerWaitingWarning" :manual="true">
<div slot="content" :class="$style.triggerWarning">{{ $locale.baseText('node.backToCanvas.waitingForTriggerWarning') }}</div> <div slot="content" :class="$style.triggerWarning">{{ $locale.baseText('ndv.backToCanvas.waitingForTriggerWarning') }}</div>
<div :class="$style.backToCanvas" @click="close"> <div :class="$style.backToCanvas" @click="close">
<n8n-icon icon="arrow-left" color="text-xlight" size="small" /> <n8n-icon icon="arrow-left" color="text-xlight" size="small" />
<n8n-text color="text-xlight" size="small">{{ $locale.baseText('node.backToCanvas') }}</n8n-text> <n8n-text color="text-xlight" size="small">{{ $locale.baseText('ndv.backToCanvas') }}</n8n-text>
</div> </div>
</n8n-tooltip> </n8n-tooltip>

View file

@ -41,14 +41,14 @@ export default mixins(
}, },
label(): string { label(): string {
if (this.isPollingTypeNode) { if (this.isPollingTypeNode) {
return this.$locale.baseText('node.execute.fetchEvent'); return this.$locale.baseText('ndv.execute.fetchEvent');
} }
if (this.isTriggerNode) { if (this.isTriggerNode) {
return this.$locale.baseText('node.execute.listenForEvent'); return this.$locale.baseText('ndv.execute.listenForEvent');
} }
return this.$locale.baseText('node.execute.executeNode'); return this.$locale.baseText('ndv.execute.executeNode');
}, },
}, },
methods: { methods: {

View file

@ -9,11 +9,11 @@
@keydown.esc="editName = false" @keydown.esc="editName = false"
> >
<n8n-text :class="$style.renameText" :bold="true" color="text-base" tag="div" <n8n-text :class="$style.renameText" :bold="true" color="text-base" tag="div"
>{{ $locale.baseText('node.title.renameNode') }}</n8n-text> >{{ $locale.baseText('ndv.title.renameNode') }}</n8n-text>
<n8n-input ref="input" size="small" v-model="newName" /> <n8n-input ref="input" size="small" v-model="newName" />
<div :class="$style.editButtons"> <div :class="$style.editButtons">
<n8n-button type="outline" size="small" @click="editName = false" :label="$locale.baseText('node.title.cancel')" /> <n8n-button type="outline" size="small" @click="editName = false" :label="$locale.baseText('ndv.title.cancel')" />
<n8n-button type="primary" size="small" @click="onRename" :label="$locale.baseText('node.title.rename')" /> <n8n-button type="primary" size="small" @click="onRename" :label="$locale.baseText('ndv.title.rename')" />
</div> </div>
</div> </div>
<span :class="$style.title" slot="reference"> <span :class="$style.title" slot="reference">

View file

@ -4,7 +4,7 @@
<div :class="$style.header"> <div :class="$style.header">
<div :class="$style.titleSection"> <div :class="$style.titleSection">
<span :class="$style.title">{{ $locale.baseText('node.output') }}</span> <span :class="$style.title">{{ $locale.baseText('ndv.output') }}</span>
<n8n-info-tip type="tooltip" theme="info-light" tooltipPlacement="right" v-if="runMetadata"> <n8n-info-tip type="tooltip" theme="info-light" tooltipPlacement="right" v-if="runMetadata">
<div> <div>
<n8n-text :bold="true" size="small">{{ $locale.baseText('runData.startTime') + ':' }}</n8n-text> {{runMetadata.startTime}}<br/> <n8n-text :bold="true" size="small">{{ $locale.baseText('runData.startTime') + ':' }}</n8n-text> {{runMetadata.startTime}}<br/>
@ -14,7 +14,7 @@
<n8n-info-tip theme="warning" type="tooltip" tooltipPlacement="right" v-if="hasNodeRun && staleData"> <n8n-info-tip theme="warning" type="tooltip" tooltipPlacement="right" v-if="hasNodeRun && staleData">
<template> <template>
<span v-html="$locale.baseText('node.output.staleDataWarning')"></span> <span v-html="$locale.baseText('ndv.output.staleDataWarning')"></span>
</template> </template>
</n8n-info-tip> </n8n-info-tip>
</div> </div>
@ -29,7 +29,7 @@
<div :class="$style.runSelector" v-if="maxRunIndex > 0" > <div :class="$style.runSelector" v-if="maxRunIndex > 0" >
<n8n-select size="small" v-model="runIndex" @click.stop> <n8n-select size="small" v-model="runIndex" @click.stop>
<template slot="prepend">{{ $locale.baseText('node.output.run') }}</template> <template slot="prepend">{{ $locale.baseText('ndv.output.run') }}</template>
<n8n-option v-for="option in (maxRunIndex + 1)" :label="getRunLabel(option)" :value="option - 1" :key="option"></n8n-option> <n8n-option v-for="option in (maxRunIndex + 1)" :label="getRunLabel(option)" :value="option - 1" :key="option"></n8n-option>
</n8n-select> </n8n-select>
</div> </div>
@ -37,7 +37,7 @@
<n8n-tabs v-model="outputIndex" v-if="maxOutputIndex > 0" :options="branches" /> <n8n-tabs v-model="outputIndex" v-if="maxOutputIndex > 0" :options="branches" />
<div v-else-if="hasNodeRun && dataCount > 0 && maxRunIndex === 0" :class="$style.itemsCount"> <div v-else-if="hasNodeRun && dataCount > 0 && maxRunIndex === 0" :class="$style.itemsCount">
<n8n-text> <n8n-text>
{{ dataCount }} {{ $locale.baseText(dataCount === 1 ? 'node.output.item' : 'node.output.items') }} {{ dataCount }} {{ $locale.baseText(dataCount === 1 ? 'ndv.output.item' : 'ndv.output.items') }}
</n8n-text> </n8n-text>
</div> </div>
@ -64,11 +64,11 @@
<div v-if="!hasNodeRun" :class="$style.center"> <div v-if="!hasNodeRun" :class="$style.center">
<div v-if="workflowRunning"> <div v-if="workflowRunning">
<div :class="$style.spinner"><n8n-spinner /></div> <div :class="$style.spinner"><n8n-spinner /></div>
<n8n-text>{{ $locale.baseText('node.output.executing') }}</n8n-text> <n8n-text>{{ $locale.baseText('ndv.output.executing') }}</n8n-text>
</div> </div>
<n8n-text v-else-if="isPollingTypeNode">{{ $locale.baseText('node.output.pollEventNodeHint') }}</n8n-text> <n8n-text v-else-if="isPollingTypeNode">{{ $locale.baseText('ndv.output.pollEventNodeHint') }}</n8n-text>
<n8n-text v-else-if="isTriggerNode">{{ $locale.baseText('node.output.triggerEventNodeHint') }}</n8n-text> <n8n-text v-else-if="isTriggerNode">{{ $locale.baseText('ndv.output.triggerEventNodeHint') }}</n8n-text>
<n8n-text v-else>{{ $locale.baseText('node.output.runNodeHint') }}</n8n-text> <n8n-text v-else>{{ $locale.baseText('ndv.output.runNodeHint') }}</n8n-text>
</div> </div>
<div v-else-if="hasNodeRun && hasRunError" :class="$style.dataDisplay"> <div v-else-if="hasNodeRun && hasRunError" :class="$style.dataDisplay">
@ -76,21 +76,21 @@
</div> </div>
<div v-else-if="hasNodeRun && jsonData && jsonData.length === 0" :class="$style.center"> <div v-else-if="hasNodeRun && jsonData && jsonData.length === 0" :class="$style.center">
<n8n-text :bold="true" color="text-dark">{{ $locale.baseText('node.output.noOutputData.title') }}</n8n-text> <n8n-text :bold="true" color="text-dark">{{ $locale.baseText('ndv.output.noOutputData.title') }}</n8n-text>
<n8n-text> <n8n-text>
{{ $locale.baseText('node.output.noOutputData.message') }} {{ $locale.baseText('ndv.output.noOutputData.message') }}
<a @click="openSettings">{{ $locale.baseText('node.output.noOutputData.message.settings') }}</a> <a @click="openSettings">{{ $locale.baseText('ndv.output.noOutputData.message.settings') }}</a>
{{ $locale.baseText('node.output.noOutputData.message.settingsOption') }} {{ $locale.baseText('ndv.output.noOutputData.message.settingsOption') }}
</n8n-text> </n8n-text>
</div> </div>
<div v-else-if="hasNodeRun && !showData" :class="$style.center"> <div v-else-if="hasNodeRun && !showData" :class="$style.center">
<n8n-text :bold="true" color="text-dark">{{ $locale.baseText('node.output.tooMuchData.title') }}</n8n-text> <n8n-text :bold="true" color="text-dark">{{ $locale.baseText('ndv.output.tooMuchData.title') }}</n8n-text>
<n8n-text align="center" tag="div"><span v-html="$locale.baseText('node.output.tooMuchData.message', { interpolate: {size: dataSizeInMB }})"></span></n8n-text> <n8n-text align="center" tag="div"><span v-html="$locale.baseText('ndv.output.tooMuchData.message', { interpolate: {size: dataSizeInMB }})"></span></n8n-text>
<n8n-button <n8n-button
type="outline" type="outline"
:label="$locale.baseText('node.output.tooMuchData.showDataAnyway')" :label="$locale.baseText('ndv.output.tooMuchData.showDataAnyway')"
@click="showData = true" @click="showData = true"
/> />
</div> </div>
@ -102,7 +102,7 @@
</tr> </tr>
<tr v-for="(row, index1) in tableData.data" :key="index1"> <tr v-for="(row, index1) in tableData.data" :key="index1">
<td> <td>
<n8n-text>{{ $locale.baseText('node.output.emptyOutput') }}</n8n-text> <n8n-text>{{ $locale.baseText('ndv.output.emptyOutput') }}</n8n-text>
</td> </td>
</tr> </tr>
</table> </table>
@ -193,7 +193,7 @@
<div :class="$style.pageSizeSelector"> <div :class="$style.pageSizeSelector">
<n8n-select size="mini" v-model="pageSize"> <n8n-select size="mini" v-model="pageSize">
<template slot="prepend">{{ $locale.baseText('node.output.items') }}</template> <template slot="prepend">{{ $locale.baseText('ndv.output.items') }}</template>
<n8n-option <n8n-option
v-for="size in pageSizes" v-for="size in pageSizes"
:key="size" :key="size"
@ -454,13 +454,13 @@ export default mixins(
const branches: ITab[] = []; const branches: ITab[] = [];
for (let i = 0; i <= this.maxOutputIndex; i++) { for (let i = 0; i <= this.maxOutputIndex; i++) {
const itemsCount = this.getDataCount(this.runIndex, i); const itemsCount = this.getDataCount(this.runIndex, i);
const items = this.$locale.baseText(itemsCount === 1 ? 'node.output.item': 'node.output.items'); const items = this.$locale.baseText(itemsCount === 1 ? 'ndv.output.item': 'ndv.output.items');
let outputName = this.getOutputName(i); let outputName = this.getOutputName(i);
if (`${outputName}` === `${i}`) { if (`${outputName}` === `${i}`) {
outputName = `${this.$locale.baseText('node.output')} ${outputName}`; outputName = `${this.$locale.baseText('ndv.output')} ${outputName}`;
} }
else { else {
outputName = capitalize(`${this.getOutputName(i)} ${this.$locale.baseText('node.output.branch')}`); outputName = capitalize(`${this.getOutputName(i)} ${this.$locale.baseText('ndv.output.branch')}`);
} }
branches.push({ branches.push({
label: itemsCount ? `${outputName} (${itemsCount} ${items})` : outputName, label: itemsCount ? `${outputName} (${itemsCount} ${items})` : outputName,
@ -476,9 +476,9 @@ export default mixins(
for (let i = 0; i <= this.maxOutputIndex; i++) { for (let i = 0; i <= this.maxOutputIndex; i++) {
itemsCount += this.getDataCount(option - 1, i); itemsCount += this.getDataCount(option - 1, i);
} }
const items = this.$locale.baseText(itemsCount === 1 ? 'node.output.item': 'node.output.items'); const items = this.$locale.baseText(itemsCount === 1 ? 'ndv.output.item': 'ndv.output.items');
const itemsLabel = itemsCount > 0 ? ` (${itemsCount} ${items})` : ''; const itemsLabel = itemsCount > 0 ? ` (${itemsCount} ${items})` : '';
return option + this.$locale.baseText('node.output.of') + (this.maxRunIndex+1) + itemsLabel; return option + this.$locale.baseText('ndv.output.of') + (this.maxRunIndex+1) + itemsLabel;
}, },
getDataCount(runIndex: number, outputIndex: number) { getDataCount(runIndex: number, outputIndex: number) {
if (this.node === null) { if (this.node === null) {

View file

@ -1136,35 +1136,35 @@
"forgotPassword.returnToSignIn": "Back to sign in", "forgotPassword.returnToSignIn": "Back to sign in",
"forgotPassword.sendingEmailError": "Problem sending email", "forgotPassword.sendingEmailError": "Problem sending email",
"forgotPassword.smtpErrorContactAdministrator": "Please contact your administrator (problem with your SMTP setup)", "forgotPassword.smtpErrorContactAdministrator": "Please contact your administrator (problem with your SMTP setup)",
"node.title.rename": "Rename", "ndv.title.rename": "Rename",
"node.title.cancel": "Cancel", "ndv.title.cancel": "Cancel",
"node.title.renameNode": "Rename node", "ndv.title.renameNode": "Rename node",
"node.execute.executeNode": "Execute node", "ndv.execute.executeNode": "Execute node",
"node.execute.executing": "Executing", "ndv.execute.executing": "Executing",
"node.execute.fetchEvent": "Fetch Event", "ndv.execute.fetchEvent": "Fetch Event",
"node.execute.listenForEvent": "Listen For Event", "ndv.execute.listenForEvent": "Listen For Event",
"node.output.pollEventNodeHint": "Fetch an event to output data", "ndv.output.pollEventNodeHint": "Fetch an event to output data",
"node.output.triggerEventNodeHint": "Listen for an event to output data", "ndv.output.triggerEventNodeHint": "Listen for an event to output data",
"node.output": "Output", "ndv.output": "Output",
"node.output.runNodeHint": "Execute this node to output data", "ndv.output.runNodeHint": "Execute this node to output data",
"node.output.executing": "Executing node...", "ndv.output.executing": "Executing node...",
"node.output.noOutputData.title": "No output data returned", "ndv.output.noOutputData.title": "No output data returned",
"node.output.noOutputData.message": "n8n stops executing the workflow when a node has no output data. You can change this default behaviour via", "ndv.output.noOutputData.message": "n8n stops executing the workflow when a node has no output data. You can change this default behaviour via",
"node.output.noOutputData.message.settings": "Settings", "ndv.output.noOutputData.message.settings": "Settings",
"node.output.noOutputData.message.settingsOption": "> “Always Output Data”.", "ndv.output.noOutputData.message.settingsOption": "> “Always Output Data”.",
"node.output.tooMuchData.title": "Output data is huge!", "ndv.output.tooMuchData.title": "Output data is huge!",
"node.output.tooMuchData.message": "The node contains {size} MB of data. Displaying it may cause problems. <br /> If you do decide to display it, avoid the JSON view.", "ndv.output.tooMuchData.message": "The node contains {size} MB of data. Displaying it may cause problems. <br /> If you do decide to display it, avoid the JSON view.",
"node.output.tooMuchData.showDataAnyway": "Show data anyway", "ndv.output.tooMuchData.showDataAnyway": "Show data anyway",
"node.output.items": "items", "ndv.output.items": "items",
"node.output.item": "item", "ndv.output.item": "item",
"node.output.run": "Run", "ndv.output.run": "Run",
"node.output.of": " of ", "ndv.output.of": " of ",
"node.output.branch": "Branch", "ndv.output.branch": "Branch",
"node.output.emptyOutput": "This output item is empty.", "ndv.output.emptyOutput": "This output item is empty.",
"node.output.emptyInput": "This input item is empty. {name} will still execute when it recieves an empty item.", "ndv.output.emptyInput": "This input item is empty. {name} will still execute when it recieves an empty item.",
"node.output.staleDataWarning": "Node parameters have changed. <br /> Execute node again to refresh output.", "ndv.output.staleDataWarning": "Node parameters have changed. <br /> Execute node again to refresh output.",
"node.backToCanvas": "Back to canvas", "ndv.backToCanvas": "Back to canvas",
"node.backToCanvas.waitingForTriggerWarning": "Waiting for a Trigger node to execute. Close this view to see the Workflow Canvas.", "ndv.backToCanvas.waitingForTriggerWarning": "Waiting for a Trigger node to execute. Close this view to see the Workflow Canvas.",
"openWorkflow.workflowImportError": "Could not import workflow", "openWorkflow.workflowImportError": "Could not import workflow",
"openWorkflow.workflowNotFoundError": "Could not find workflow", "openWorkflow.workflowNotFoundError": "Could not find workflow",
"settings": "Settings", "settings": "Settings",