Skip to content

Commit c0f8210

Browse files
authored
Fix 2 translations (#5466)
1 parent e17dc23 commit c0f8210

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/core/i18n/en/translation.en.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@
922922
}
923923
},
924924
"innovationFlowStateSelector": {
925-
"selectedStateNotice": "This Challenge is currently in the <strong>{{currentState}}</strong> state. You can already have a look at the tools for the <strong>{{selectedState}}</strong> state here."
925+
"selectedStateNotice": "This {{journeyType}} is currently in the <strong>{{currentState}}</strong> state. You can already have a look at the tools for the <strong>{{selectedState}}</strong> state here."
926926
},
927927
"invitations": {
928928
"inviteOthers": "Invite others",
@@ -1978,7 +1978,7 @@
19781978
"myMemberships": {
19791979
"title": "My Memberships",
19801980
"noChildMemberships": "You are not a member of a Challenge in this Space. Some Challenges do not require you to be a member to contribute, but if you want to receive updates or show the Challenge here, become a member anyway!",
1981-
"seeMore": "That’s all! Looking for other Spaces to collaborate in? <challenges>Click here</challenges> to explore all Spaces on the platform, or <landing>click here</landing> to create your own!"
1981+
"seeMore": "That’s all! Looking for other Spaces to collaborate in? <challenges>Click here</challenges> to explore all Challenges on the platform, or <landing>click here</landing> to create your own!"
19821982
},
19831983
"membershipSuggestions": {
19841984
"title": "Become a member",

src/domain/collaboration/InnovationFlow/InnovationFlowStates/InnovationFlowStates.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import { gutters } from '../../../../core/ui/grid/utils';
99
import { useState } from 'react';
1010
import InnovationFlowSettingsDialog from '../InnovationFlowDialogs/InnovationFlowSettingsDialog';
1111
import { useGlobalGridColumns } from '../../../../core/ui/grid/constants';
12+
import { JourneyTypeName } from '../../../journey/JourneyTypeName';
1213

1314
export type InnovationFlowState = string;
1415

1516
interface InnovationFlowStatesProps {
1617
states: InnovationFlowState[];
1718
currentState: string;
1819
selectedState: string;
20+
journeyTypeName: JourneyTypeName;
1921
showSettings?: boolean;
2022
onSelectState?: (state: InnovationFlowState) => void;
2123
}
@@ -24,6 +26,7 @@ const InnovationFlowStates = ({
2426
states,
2527
currentState,
2628
selectedState,
29+
journeyTypeName,
2730
showSettings = false,
2831
onSelectState,
2932
}: InnovationFlowStatesProps) => {
@@ -95,6 +98,7 @@ const InnovationFlowStates = ({
9598
<Trans
9699
i18nKey="components.innovationFlowStateSelector.selectedStateNotice"
97100
values={{
101+
journeyType: t(`common.journeyTypes.${journeyTypeName}` as const),
98102
currentState: getStateName(currentState),
99103
selectedState: getStateName(selectedState),
100104
}}

src/domain/collaboration/callout/JourneyCalloutsTabView/JourneyCalloutsTabView.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ const JourneyCalloutsTabView = ({
118118
<PageContentColumn columns={8}>
119119
{innovationFlowStates && currentInnovationFlowState && selectedInnovationFlowState && (
120120
<InnovationFlowStates
121+
states={innovationFlowStates}
121122
currentState={currentInnovationFlowState}
122123
selectedState={selectedInnovationFlowState}
123-
states={innovationFlowStates}
124-
onSelectState={handleSelectInnovationFlowState}
124+
journeyTypeName={journeyTypeName}
125125
showSettings={canEditInnovationFlow}
126+
onSelectState={handleSelectInnovationFlowState}
126127
/>
127128
)}
128129
<CalloutsGroupView

0 commit comments

Comments
 (0)