Skip to content

Commit

Permalink
Revert "Use pluralization"
Browse files Browse the repository at this point in the history
This reverts commit 896edd9.
  • Loading branch information
CharlieKolb committed Jan 7, 2025
1 parent 79f4650 commit 628a670
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions packages/editor-ui/src/components/RunData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1263,10 +1263,13 @@ function getExecutionLinkLabel(task: ITaskMetadata): string | undefined {
}
if (task.subExecution) {
return i18n.baseText('runData.openSubExecution', {
adjustToNumber: activeTaskMetadata.value?.subExecutionsCount ?? 0,
interpolate: { id: task.subExecution.executionId },
});
if (activeTaskMetadata.value?.subExecutionsCount === 1) {
return i18n.baseText('runData.openSubExecutionSingle');
} else {
return i18n.baseText('runData.openSubExecutionWithId', {
interpolate: { id: task.subExecution.executionId },
});
}
}
return;
Expand Down
3 changes: 2 additions & 1 deletion packages/editor-ui/src/plugins/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,8 @@
"resourceMapper.attemptToConvertTypes.description": "Attempt to convert types when mapping fields",
"resourceMapper.ignoreTypeMismatchErrors.displayName": "Ignore type mismatch errors",
"resourceMapper.ignoreTypeMismatchErrors.description": "Whether type mismatches should be ignored, rather than returning an Error",
"runData.openSubExecution": "View sub-execution | View sub-execution {id}",
"runData.openSubExecutionSingle": "View sub-execution",
"runData.openSubExecutionWithId": "View sub-execution {id}",
"runData.openParentExecution": "View parent execution {id}",
"runData.emptyItemHint": "This is an item, but it's empty.",
"runData.emptyArray": "[empty array]",
Expand Down

0 comments on commit 628a670

Please sign in to comment.