diff --git a/components/case/representation/representationComplete.js b/components/case/representation/representationComplete.js index 7ef18595..d252d57e 100644 --- a/components/case/representation/representationComplete.js +++ b/components/case/representation/representationComplete.js @@ -40,12 +40,17 @@ const RepComplete = (props) => { props.props.currentView.caseReference.appealType === 846040002; useEffect(() => { + const isWelsh = router.locale === "cy"; const reference = isSIPS - ? "PEDW-CONSULTATION-COMPLETE" - : "PEDW-REPRESENTATION-COMPLETE"; + ? "PEDW-CONSULTATION-COMPLETE" + isWelsh && "-CY" + : "PEDW-REPRESENTATION-COMPLETE" + isWelsh && "-CY"; const templateId = isSIPS - ? "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc" - : "c49785e7-3217-40b6-b33f-dffc4e58d5c1"; + ? isWelsh + ? "7d27b968-6f63-4334-b1c4-2e4a69554212" + : "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc" + : isWelsh + ? "6e2f0111-b352-4074-91a2-760403cd185b" + : "c49785e7-3217-40b6-b33f-dffc4e58d5c1"; const emailAddress = props.props.props.props.accountDetails.accountDetails.emailaddress1; diff --git a/components/newappeal/complete.js b/components/newappeal/complete.js index 96c6eddc..b1106c76 100644 --- a/components/newappeal/complete.js +++ b/components/newappeal/complete.js @@ -39,16 +39,13 @@ let CompleteAppeal = (props) => { let updateFormCollection = appTypeCollection.LogicalCollectionName; let primaryAttribute = appTypeCollection.PrimaryIdAttribute; - // updateCase( - // incidentId, - // updateBody, - // updateFormCollection, - // primaryAttribute, - // props.appealType.caseReference.ticketnumber - // ); + const isWelsh = router.locale === "cy"; - const reference = "PEDW-COMPLETE"; - const templateId = "618e0463-b092-4733-a024-bf8a3bbde808"; + const templateId = isWelsh + ? "f859163e-3ae7-43f9-929b-4206baa09a8b" + : "618e0463-b092-4733-a024-bf8a3bbde808"; + + const reference = "PEDW-COMPLETE" + isWelsh && "-CY"; const emailAddress = props.props.accountDetails.loggedinUserEmail; const personalisation = { "caseReference": props.appealType.caseReference.ticketnumber,