diff --git a/components/MyPages/Surprises/Client.tsx b/components/MyPages/Surprises/Client.tsx index c0a8adf0d..a39e02841 100644 --- a/components/MyPages/Surprises/Client.tsx +++ b/components/MyPages/Surprises/Client.tsx @@ -6,6 +6,7 @@ import React, { useState } from "react" import { Dialog, Modal, ModalOverlay } from "react-aria-components" import { useIntl } from "react-intl" +import { customerService } from "@/constants/currentWebHrefs" import { benefits } from "@/constants/routes/myPages" import { trpc } from "@/lib/trpc/client" @@ -62,7 +63,18 @@ export default function SurprisesNotification({ console.error("Failed to unwrap surprise", error) toast.error( <> - {intl.formatMessage({ id: "An error occurred. Please try again." })} + {intl.formatMessage( + { + id: "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.", + }, + { + link: (str) => ( + + {str} + + ), + } + )} ) }, diff --git a/constants/currentWebHrefs.ts b/constants/currentWebHrefs.ts index 751e875de..f3079ebcc 100644 --- a/constants/currentWebHrefs.ts +++ b/constants/currentWebHrefs.ts @@ -1,4 +1,4 @@ -import { LangRoute } from "@/types/routes" +import type { LangRoute } from "@/types/routes" const baseUrl: LangRoute = { da: "https://www.scandichotels.dk", @@ -44,3 +44,12 @@ export const privacyPolicy: LangRoute = { no: `${baseUrl.no}/kundeservice/priser-og-bestillingsvilkar/personvernpolicy`, sv: `${baseUrl.sv}/kundservice/priser-och-bokningsregler/integritetspolicy`, } + +export const customerService: LangRoute = { + da: `${baseUrl.da}/kundeservice`, + de: `${baseUrl.de}/kundenbetreuung`, + en: `${baseUrl.en}/customer-service`, + fi: `${baseUrl.fi}/asiakaspalvelu`, + no: `${baseUrl.no}/kundeservice`, + sv: `${baseUrl.sv}/kundservice`, +} diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json index fcea3fc36..4171c9493 100644 --- a/i18n/dictionaries/da.json +++ b/i18n/dictionaries/da.json @@ -362,6 +362,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "ANDRE BETALINGSMETODER", "On your journey": "På din rejse", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Ups! Noget gik galt under visningen af din overraskelse. Opdater siden, eller prøv igen senere. Hvis problemet fortsætter, skal du kontakte supporten.", "Open": "Åben", "Open image gallery": "Åbn billedgalleri", "Open language menu": "Åbn sprogmenuen", diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json index 45274301a..7bbe4067e 100644 --- a/i18n/dictionaries/de.json +++ b/i18n/dictionaries/de.json @@ -363,6 +363,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "ANDERE BEZAHLMETHODE", "On your journey": "Auf deiner Reise", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Ups! Beim Anzeigen Ihrer Überraschung ist ein Fehler aufgetreten. Bitte aktualisieren Sie die Seite oder versuchen Sie es später erneut. Wenn das Problem weiterhin besteht, kontaktieren Sie den Support.", "Open": "Offen", "Open image gallery": "Bildergalerie öffnen", "Open language menu": "Sprachmenü öffnen", diff --git a/i18n/dictionaries/en.json b/i18n/dictionaries/en.json index f6d23fd83..f0f5882c8 100644 --- a/i18n/dictionaries/en.json +++ b/i18n/dictionaries/en.json @@ -366,6 +366,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "OTHER PAYMENT METHODS", "On your journey": "On your journey", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.", "Open": "Open", "Open image gallery": "Open image gallery", "Open language menu": "Open language menu", diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json index d4f23032c..a9abc47e0 100644 --- a/i18n/dictionaries/fi.json +++ b/i18n/dictionaries/fi.json @@ -362,6 +362,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "MUISE KORT", "On your journey": "Matkallasi", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Hups! Jotain meni pieleen yllätyksesi näyttämisessä. Päivitä sivu tai yritä myöhemmin uudelleen. Jos ongelma jatkuu, ota yhteyttä tukeen.", "Open": "Avata", "Open image gallery": "Avaa kuvagalleria", "Open language menu": "Avaa kielivalikko", diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json index 8f3a936ef..07bbbd8bc 100644 --- a/i18n/dictionaries/no.json +++ b/i18n/dictionaries/no.json @@ -361,6 +361,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "ANDRE BETALINGSMETODER", "On your journey": "På reisen din", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Beklager! Noe gikk galt under visningen av overraskelsen din. Oppdater siden eller prøv igjen senere. Hvis problemet vedvarer, kontakt brukerstøtten.", "Open": "Åpen", "Open image gallery": "Åpne bildegalleri", "Open language menu": "Åpne språkmenyen", diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json index 4026c88a9..58c6baf27 100644 --- a/i18n/dictionaries/sv.json +++ b/i18n/dictionaries/sv.json @@ -361,6 +361,7 @@ "OK": "OK", "OTHER PAYMENT METHODS": "ANDRE BETALINGSMETODER", "On your journey": "På din resa", + "Oops! Something went wrong while showing your surprise. Please refresh the page or try again later. If the issue persists, contact the support.": "Hoppsan! Något gick fel när din överraskning visades. Uppdatera sidan eller försök igen senare. Om problemet kvarstår, kontakta supporten.", "Open": "Öppna", "Open image gallery": "Öppna bildgalleri", "Open language menu": "Öppna språkmenyn",