From f736d6a85e8f39479fe9af678dacb39b13725de4 Mon Sep 17 00:00:00 2001 From: Joachim Schuler Date: Thu, 1 Jul 2021 17:47:36 -0400 Subject: [PATCH] resource pluralization --- packages/dev/package.json | 2 +- packages/module/package.json | 2 +- packages/module/src/QuickStartPanelContent.tsx | 2 +- packages/module/src/catalog/QuickStartTileHeader.tsx | 2 +- packages/module/src/controller/QuickStartIntroduction.tsx | 2 +- packages/module/src/controller/QuickStartTaskHeader.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/dev/package.json b/packages/dev/package.json index 79706271..43d4eab1 100644 --- a/packages/dev/package.json +++ b/packages/dev/package.json @@ -9,7 +9,7 @@ "serve": "serve public" }, "dependencies": { - "@patternfly/quickstarts": "1.0.0-rc.26", + "@patternfly/quickstarts": "1.0.0-rc.27", "@patternfly/react-core": "^4.101.3", "asciidoctor": "^2.2.1", "react": "^16.14.0", diff --git a/packages/module/package.json b/packages/module/package.json index 90c75d02..dbd61957 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -1,6 +1,6 @@ { "name": "@patternfly/quickstarts", - "version": "1.0.0-rc.26", + "version": "1.0.0-rc.27", "description": "PatternFly quick starts", "files": [ "dist" diff --git a/packages/module/src/QuickStartPanelContent.tsx b/packages/module/src/QuickStartPanelContent.tsx index 89c27421..2a21cf17 100644 --- a/packages/module/src/QuickStartPanelContent.tsx +++ b/packages/module/src/QuickStartPanelContent.tsx @@ -89,7 +89,7 @@ const QuickStartPanelContent: React.FC = ({ > {quickStart?.spec.displayName}{' '} - {getResource('{{duration, number}} minutes').replace('{{duration, number}}', quickStart?.spec.durationMinutes)} + {getResource('{{duration, number}} minutes', quickStart?.spec.durationMinutes).replace('{{duration, number}}', quickStart?.spec.durationMinutes)} diff --git a/packages/module/src/catalog/QuickStartTileHeader.tsx b/packages/module/src/catalog/QuickStartTileHeader.tsx index b656ff9f..4d0abc5f 100644 --- a/packages/module/src/catalog/QuickStartTileHeader.tsx +++ b/packages/module/src/catalog/QuickStartTileHeader.tsx @@ -48,7 +48,7 @@ const QuickStartTileHeader: React.FC = ({ icon={} className="co-quick-start-tile-header--margin" > - {getResource('{{duration, number}} minutes').replace('{{duration, number}}', duration)} + {getResource('{{duration, number}} minutes', duration).replace('{{duration, number}}', duration)} )} {status !== QuickStartStatus.NOT_STARTED && ( diff --git a/packages/module/src/controller/QuickStartIntroduction.tsx b/packages/module/src/controller/QuickStartIntroduction.tsx index bde75ad2..ba2b125a 100644 --- a/packages/module/src/controller/QuickStartIntroduction.tsx +++ b/packages/module/src/controller/QuickStartIntroduction.tsx @@ -22,7 +22,7 @@ const QuickStartIntroduction: React.FC = ({ <>

- {getResource('In this quick start, you will complete {{count, number}} task').replace('{{count, number}} ', tasks.length)} + {getResource('In this quick start, you will complete {{count, number}} task', tasks.length).replace('{{count, number}}', tasks.length)} :

{tasks.map((task, index) => ( diff --git a/packages/module/src/controller/QuickStartTaskHeader.tsx b/packages/module/src/controller/QuickStartTaskHeader.tsx index 12d21909..cb9ce383 100644 --- a/packages/module/src/controller/QuickStartTaskHeader.tsx +++ b/packages/module/src/controller/QuickStartTaskHeader.tsx @@ -44,7 +44,7 @@ const TaskIcon: React.FC<{ taskIndex: number; taskStatus: QuickStartTaskStatus; default: return ( - {getResource('{{taskIndex, number}}').replace('{{taskIndex, number}}', taskIndex)} + {getResource('{{taskIndex, number}}', taskIndex).replace('{{taskIndex, number}}', taskIndex)} ); }