From 802c993797483a65efc7b868ba646c95690f35a7 Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Mon, 8 Jul 2024 09:08:55 +0200 Subject: [PATCH] fix: add translations for tripadvisor and read more about hotel text --- components/ContentType/HotelPage/IntroSection/index.tsx | 7 +++++-- i18n/dictionaries/da.json | 2 ++ i18n/dictionaries/de.json | 2 ++ i18n/dictionaries/en.json | 2 ++ i18n/dictionaries/fi.json | 2 ++ i18n/dictionaries/no.json | 2 ++ i18n/dictionaries/sv.json | 2 ++ 7 files changed, 17 insertions(+), 2 deletions(-) diff --git a/components/ContentType/HotelPage/IntroSection/index.tsx b/components/ContentType/HotelPage/IntroSection/index.tsx index 2beeaf445..0627b31f1 100644 --- a/components/ContentType/HotelPage/IntroSection/index.tsx +++ b/components/ContentType/HotelPage/IntroSection/index.tsx @@ -33,7 +33,10 @@ export default async function IntroSection({ { number: distanceToCentre } ) const formattedLocationText = `${streetAddress}, ${city} (${formattedDistanceText})` - const formattedTripAdvisorText = `${tripAdvisor.rating} (${tripAdvisor.numberOfReviews} reviews on tripadvisor)` + const formattedTripAdvisorText = formatMessage( + { id: "Tripadvisor reviews" }, + { rating: tripAdvisor.rating, count: tripAdvisor.numberOfReviews } + ) return (
@@ -66,7 +69,7 @@ export default async function IntroSection({ href="#" > {/*TODO: Ask content team where this should link to. */} - Read more about the hotel + {formatMessage({ id: "Read more about the hotel" })} diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json index db310e5d2..bf291085e 100644 --- a/i18n/dictionaries/da.json +++ b/i18n/dictionaries/da.json @@ -73,6 +73,7 @@ "Previous victories": "Tidligere sejre", "points until next level": "point indtil næste niveau", "Read more": "Læs mere", + "Read more about the hotel": "Læs mere om hotellet", "Retype new password": "Gentag den nye adgangskode", "Save": "Gemme", "Select a country": "Vælg et land", @@ -87,6 +88,7 @@ "Total Points": "Samlet antal point", "Transaction date": "Overførselsdato", "Transactions": "Transaktioner", + "Tripadvisor reviews": "{rating} ({count} anmeldelser på Tripadvisor)", "to": "til", "User information": "Brugeroplysninger", "uppercase letter": "stort bogstav", diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json index 4ad622a09..32a5450ff 100644 --- a/i18n/dictionaries/de.json +++ b/i18n/dictionaries/de.json @@ -73,6 +73,7 @@ "Previous victories": "Bisherige Siege", "points until next level": "punkte bis zum nächsten Level", "Read more": "Mehr lesen", + "Read more about the hotel": "Lesen Sie mehr über das Hotel", "Retype new password": "Neues Passwort erneut eingeben", "Save": "Speichern", "Select a country": "Wähle ein Land", @@ -87,6 +88,7 @@ "Total Points": "Gesamtpunktzahl", "Transaction date": "Transaktionsdatum", "Transactions": "Transaktionen", + "Tripadvisor reviews": "{rating} ({count} Bewertungen auf Tripadvisor)", "to": "zu", "User information": "Nutzerinformation", "uppercase letter": "großbuchstabe", diff --git a/i18n/dictionaries/en.json b/i18n/dictionaries/en.json index 13da74126..4e087174a 100644 --- a/i18n/dictionaries/en.json +++ b/i18n/dictionaries/en.json @@ -74,6 +74,7 @@ "Previous victories": "Previous victories", "points until next level": "points until next level", "Read more": "Read more", + "Read more about the hotel": "Read more about the hotel", "Retype new password": "Retype new password", "Save": "Save", "Select a country": "Select a country", @@ -88,6 +89,7 @@ "Total Points": "Total Points", "Transaction date": "Transaction date", "Transactions": "Transactions", + "Tripadvisor reviews": "{rating} ({count} reviews on Tripadvisor)", "to": "to", "User information": "User information", "uppercase letter": "uppercase letter", diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json index c9bb8b7a7..c4062e528 100644 --- a/i18n/dictionaries/fi.json +++ b/i18n/dictionaries/fi.json @@ -73,6 +73,7 @@ "Previous victories": "Edelliset voitot", "points until next level": "pisteitä seuraavalle tasolle", "Read more": "Lue lisää", + "Read more about the hotel": "Lue lisää hotellista", "Retype new password": "Kirjoita uusi salasana uudelleen", "Save": "Tallentaa", "Select a country": "Valitse maa", @@ -87,6 +88,7 @@ "Total Points": "Kokonaispisteet", "Transaction date": "Tapahtuman päivämäärä", "Transactions": "Tapahtumat", + "Tripadvisor reviews": "{rating} ({count} arvostelua TripAdvisorissa)", "to": "to", "User information": "Käyttäjän tiedot", "uppercase letter": "iso kirjain", diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json index 457a5a6f9..defa4aabc 100644 --- a/i18n/dictionaries/no.json +++ b/i18n/dictionaries/no.json @@ -73,6 +73,7 @@ "Previous victories": "Tidligere seire", "points until next level": "poeng til neste nivå", "Read more": "Les mer", + "Read more about the hotel": "Les mer om hotellet", "Retype new password": "Skriv inn nytt passord på nytt", "Save": "Lagre", "Select a country": "Velg et land", @@ -87,6 +88,7 @@ "Total Points": "Totale poeng", "Transaction date": "Transaksjonsdato", "Transactions": "Transaksjoner", + "Tripadvisor reviews": "{rating} ({count} anmeldelser på Tripadvisor)", "to": "til", "User information": "Brukerinformasjon", "uppercase letter": "stor bokstav", diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json index 4eecf639b..976dcd7a1 100644 --- a/i18n/dictionaries/sv.json +++ b/i18n/dictionaries/sv.json @@ -73,6 +73,7 @@ "Previous victories": "Tidigare segrar", "points until next level": "poäng till nästa nivå", "Read more": "Läs mer", + "Read more about the hotel": "Läs mer om hotellet", "Retype new password": "Upprepa nytt lösenord", "Save": "Spara", "Select a country": "Välj ett land", @@ -87,6 +88,7 @@ "Total Points": "Total poäng", "Transaction date": "Transaktionsdatum", "Transactions": "Transaktioner", + "Tripadvisor reviews": "{rating} ({count} recensioner på Tripadvisor)", "to": "till", "User information": "Användar information", "uppercase letter": "stor bokstav",