From 7a8b926f0a881a5df70bdcf0ac49bbbe0e4b21db Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Wed, 26 Feb 2025 16:40:55 +0100 Subject: [PATCH] fix(SW-1273): update customer service info with link instead of phone number --- .../HotelReservation/FindMyBooking/index.tsx | 17 +++++++++++++++-- apps/scandic-web/i18n/dictionaries/da.json | 4 ++-- apps/scandic-web/i18n/dictionaries/de.json | 4 ++-- apps/scandic-web/i18n/dictionaries/en.json | 4 ++-- apps/scandic-web/i18n/dictionaries/fi.json | 4 ++-- apps/scandic-web/i18n/dictionaries/no.json | 4 ++-- apps/scandic-web/i18n/dictionaries/sv.json | 4 ++-- 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/FindMyBooking/index.tsx b/apps/scandic-web/components/HotelReservation/FindMyBooking/index.tsx index bd227fbed..f74d29dbc 100644 --- a/apps/scandic-web/components/HotelReservation/FindMyBooking/index.tsx +++ b/apps/scandic-web/components/HotelReservation/FindMyBooking/index.tsx @@ -5,6 +5,7 @@ import { useRouter } from "next/navigation" import { FormProvider, useForm } from "react-hook-form" import { useIntl } from "react-intl" +import { customerService } from "@/constants/currentWebHrefs" import { trpc } from "@/lib/trpc/client" import Button from "@/components/TempDesignSystem/Button" @@ -101,8 +102,20 @@ export default function Form() { {intl.formatMessage( - { id: "Please call customer service at {phoneNr}" }, - { phoneNr: XXXXXX } + { id: "Please contact customer service." }, + { + link: (str) => ( + + {str} + + ), + } )} diff --git a/apps/scandic-web/i18n/dictionaries/da.json b/apps/scandic-web/i18n/dictionaries/da.json index 19ad8971e..713c975c4 100644 --- a/apps/scandic-web/i18n/dictionaries/da.json +++ b/apps/scandic-web/i18n/dictionaries/da.json @@ -472,7 +472,7 @@ "Phone": "Telefon", "Phone is required": "Telefonnummer er påkrævet", "Phone number": "Telefonnummer", - "Please call customer service at {phoneNr}": "Ring venligst til kundeservice på {phoneNr}", + "Please contact customer service.": "Kontakt venligst kundeservice.", "Please enter a valid phone number": "Indtast venligst et gyldigt telefonnummer", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -807,4 +807,4 @@ "{value} persons": "{number} Personen", "{value} square meters": "{number} Quadratmeter", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB Alle rettigheder forbeholdes" -} \ No newline at end of file +} diff --git a/apps/scandic-web/i18n/dictionaries/de.json b/apps/scandic-web/i18n/dictionaries/de.json index 6f4874272..52cf66d54 100644 --- a/apps/scandic-web/i18n/dictionaries/de.json +++ b/apps/scandic-web/i18n/dictionaries/de.json @@ -474,7 +474,7 @@ "Phone": "Telefon", "Phone is required": "Telefon ist erforderlich", "Phone number": "Telefonnummer", - "Please call customer service at {phoneNr}": "Bitte rufen Sie den Kundendienst unter {phoneNr} an", + "Please contact customer service.": "Bitte wenden Sie sich an den Kundendienst.", "Please enter a valid phone number": "Bitte geben Sie eine gültige Telefonnummer ein", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -808,4 +808,4 @@ "{value} persons": "{number} personer", "{value} square meters": "{number} kvadratmeter", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB Alle Rechte vorbehalten" -} \ No newline at end of file +} diff --git a/apps/scandic-web/i18n/dictionaries/en.json b/apps/scandic-web/i18n/dictionaries/en.json index 8a3189ad0..a3ebb93ee 100644 --- a/apps/scandic-web/i18n/dictionaries/en.json +++ b/apps/scandic-web/i18n/dictionaries/en.json @@ -476,7 +476,7 @@ "Phone": "Phone", "Phone is required": "Phone is required", "Phone number": "Phone number", - "Please call customer service at {phoneNr}": "Please call customer service at {phoneNr}", + "Please contact customer service.": "Please contact customer service.", "Please enter a valid phone number": "Please enter a valid phone number", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -814,4 +814,4 @@ "{value} persons": "{value} persons", "{value} square meters": "{value} square meters", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB All rights reserved" -} \ No newline at end of file +} diff --git a/apps/scandic-web/i18n/dictionaries/fi.json b/apps/scandic-web/i18n/dictionaries/fi.json index 47a0b0a00..94f32ee33 100644 --- a/apps/scandic-web/i18n/dictionaries/fi.json +++ b/apps/scandic-web/i18n/dictionaries/fi.json @@ -473,7 +473,7 @@ "Phone": "Puhelin", "Phone is required": "Puhelin vaaditaan", "Phone number": "Puhelinnumero", - "Please call customer service at {phoneNr}": "Soita asiakaspalveluun numeroon {phoneNr}", + "Please contact customer service.": "Ota yhteyttä asiakaspalveluun.", "Please enter a valid phone number": "Ole hyvä ja näppäile voimassaoleva puhelinnumero", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -808,4 +808,4 @@ "{value} persons": "{number} henkilöä", "{value} square meters": "{number} neliömetriä", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB Kaikki oikeudet pidätetään" -} \ No newline at end of file +} diff --git a/apps/scandic-web/i18n/dictionaries/no.json b/apps/scandic-web/i18n/dictionaries/no.json index 94fdd5839..8a859eeab 100644 --- a/apps/scandic-web/i18n/dictionaries/no.json +++ b/apps/scandic-web/i18n/dictionaries/no.json @@ -470,7 +470,7 @@ "Phone": "Telefon", "Phone is required": "Telefon kreves", "Phone number": "Telefonnummer", - "Please call customer service at {phoneNr}": "Ring kundeservice på {phoneNr}", + "Please contact customer service.": "Vennligst kontakt kundeservice.", "Please enter a valid phone number": "Vennligst oppgi et gyldig telefonnummer", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -804,4 +804,4 @@ "{value} persons": "{number} personer", "{value} square meters": "{number} kvadratmeter", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB Alle rettigheter forbeholdt" -} \ No newline at end of file +} diff --git a/apps/scandic-web/i18n/dictionaries/sv.json b/apps/scandic-web/i18n/dictionaries/sv.json index 338ea14f1..6cc9798a5 100644 --- a/apps/scandic-web/i18n/dictionaries/sv.json +++ b/apps/scandic-web/i18n/dictionaries/sv.json @@ -470,7 +470,7 @@ "Phone": "Telefon", "Phone is required": "Telefonnummer är obligatorisk", "Phone number": "Telefonnummer", - "Please call customer service at {phoneNr}": "Ring kundtjänst på {phoneNr}", + "Please contact customer service.": "Vänligen kontakta kundtjänst.", "Please enter a valid phone number": "Var vänlig och ange ett giltigt telefonnummer", "Please enter the code sent to in order to confirm your account linking.": "Please enter the code sent to in order to confirm your account linking.", "Please enter the code sent to in order to unlink your accounts.": "Please enter the code sent to in order to unlink your accounts.", @@ -806,4 +806,4 @@ "{value} persons": "{number} personer", "{value} square meters": "{number} kvadratmeter", "© {currentYear} Scandic AB All rights reserved": "© {currentYear} Scandic AB Alla rättigheter förbehålls" -} \ No newline at end of file +}