Skip to content

Commit d341f3b

Browse files
author
Greg Trihus
committed
only localize known tools
1 parent 03da19f commit d341f3b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/renderer/src/components/StepEditor/StepEditor.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,14 +454,13 @@ export const StepEditor = ({ process, org }: IProps) => {
454454

455455
const prettySettings = (tool: string, settings: string) => {
456456
const json = settings ? JSON.parse(settings) : undefined;
457-
const localTool = st.getString(tool as ToolSlug);
458457
switch (tool as ToolSlug) {
459458
case ToolSlug.Record:
460459
case ToolSlug.Transcribe:
461460
case ToolSlug.Paratext:
462461
if (json)
463462
return se.settingsFor
464-
.replace('{0}', localTool)
463+
.replace('{0}', st.getString(tool as ToolSlug))
465464
.replace(
466465
'{1}',
467466
localizedArtifactTypeFromId(
@@ -473,7 +472,7 @@ export const StepEditor = ({ process, org }: IProps) => {
473472
)
474473
);
475474
return se.settingsFor
476-
.replace('{0}', localTool)
475+
.replace('{0}', st.getString(tool as ToolSlug))
477476
.replace('{1}', localizedArtifactTypeFromId(VernacularTag));
478477
default:
479478
return '';

0 commit comments

Comments
 (0)