fix: add translations for tripadvisor and read more about hotel text

This commit is contained in:
Chuma McPhoy
2024-07-08 09:08:55 +02:00
parent cfc4aca561
commit 802c993797
7 changed files with 17 additions and 2 deletions

View File

@@ -33,7 +33,10 @@ export default async function IntroSection({
{ number: distanceToCentre } { number: distanceToCentre }
) )
const formattedLocationText = `${streetAddress}, ${city} (${formattedDistanceText})` 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 ( return (
<section className={styles.introSection}> <section className={styles.introSection}>
@@ -66,7 +69,7 @@ export default async function IntroSection({
href="#" href="#"
> >
{/*TODO: Ask content team where this should link to. */} {/*TODO: Ask content team where this should link to. */}
Read more about the hotel {formatMessage({ id: "Read more about the hotel" })}
<ArrowRight color="peach80" /> <ArrowRight color="peach80" />
</Link> </Link>
</div> </div>

View File

@@ -73,6 +73,7 @@
"Previous victories": "Tidligere sejre", "Previous victories": "Tidligere sejre",
"points until next level": "point indtil næste niveau", "points until next level": "point indtil næste niveau",
"Read more": "Læs mere", "Read more": "Læs mere",
"Read more about the hotel": "Læs mere om hotellet",
"Retype new password": "Gentag den nye adgangskode", "Retype new password": "Gentag den nye adgangskode",
"Save": "Gemme", "Save": "Gemme",
"Select a country": "Vælg et land", "Select a country": "Vælg et land",
@@ -87,6 +88,7 @@
"Total Points": "Samlet antal point", "Total Points": "Samlet antal point",
"Transaction date": "Overførselsdato", "Transaction date": "Overførselsdato",
"Transactions": "Transaktioner", "Transactions": "Transaktioner",
"Tripadvisor reviews": "{rating} ({count} anmeldelser på Tripadvisor)",
"to": "til", "to": "til",
"User information": "Brugeroplysninger", "User information": "Brugeroplysninger",
"uppercase letter": "stort bogstav", "uppercase letter": "stort bogstav",

View File

@@ -73,6 +73,7 @@
"Previous victories": "Bisherige Siege", "Previous victories": "Bisherige Siege",
"points until next level": "punkte bis zum nächsten Level", "points until next level": "punkte bis zum nächsten Level",
"Read more": "Mehr lesen", "Read more": "Mehr lesen",
"Read more about the hotel": "Lesen Sie mehr über das Hotel",
"Retype new password": "Neues Passwort erneut eingeben", "Retype new password": "Neues Passwort erneut eingeben",
"Save": "Speichern", "Save": "Speichern",
"Select a country": "Wähle ein Land", "Select a country": "Wähle ein Land",
@@ -87,6 +88,7 @@
"Total Points": "Gesamtpunktzahl", "Total Points": "Gesamtpunktzahl",
"Transaction date": "Transaktionsdatum", "Transaction date": "Transaktionsdatum",
"Transactions": "Transaktionen", "Transactions": "Transaktionen",
"Tripadvisor reviews": "{rating} ({count} Bewertungen auf Tripadvisor)",
"to": "zu", "to": "zu",
"User information": "Nutzerinformation", "User information": "Nutzerinformation",
"uppercase letter": "großbuchstabe", "uppercase letter": "großbuchstabe",

View File

@@ -74,6 +74,7 @@
"Previous victories": "Previous victories", "Previous victories": "Previous victories",
"points until next level": "points until next level", "points until next level": "points until next level",
"Read more": "Read more", "Read more": "Read more",
"Read more about the hotel": "Read more about the hotel",
"Retype new password": "Retype new password", "Retype new password": "Retype new password",
"Save": "Save", "Save": "Save",
"Select a country": "Select a country", "Select a country": "Select a country",
@@ -88,6 +89,7 @@
"Total Points": "Total Points", "Total Points": "Total Points",
"Transaction date": "Transaction date", "Transaction date": "Transaction date",
"Transactions": "Transactions", "Transactions": "Transactions",
"Tripadvisor reviews": "{rating} ({count} reviews on Tripadvisor)",
"to": "to", "to": "to",
"User information": "User information", "User information": "User information",
"uppercase letter": "uppercase letter", "uppercase letter": "uppercase letter",

View File

@@ -73,6 +73,7 @@
"Previous victories": "Edelliset voitot", "Previous victories": "Edelliset voitot",
"points until next level": "pisteitä seuraavalle tasolle", "points until next level": "pisteitä seuraavalle tasolle",
"Read more": "Lue lisää", "Read more": "Lue lisää",
"Read more about the hotel": "Lue lisää hotellista",
"Retype new password": "Kirjoita uusi salasana uudelleen", "Retype new password": "Kirjoita uusi salasana uudelleen",
"Save": "Tallentaa", "Save": "Tallentaa",
"Select a country": "Valitse maa", "Select a country": "Valitse maa",
@@ -87,6 +88,7 @@
"Total Points": "Kokonaispisteet", "Total Points": "Kokonaispisteet",
"Transaction date": "Tapahtuman päivämäärä", "Transaction date": "Tapahtuman päivämäärä",
"Transactions": "Tapahtumat", "Transactions": "Tapahtumat",
"Tripadvisor reviews": "{rating} ({count} arvostelua TripAdvisorissa)",
"to": "to", "to": "to",
"User information": "Käyttäjän tiedot", "User information": "Käyttäjän tiedot",
"uppercase letter": "iso kirjain", "uppercase letter": "iso kirjain",

View File

@@ -73,6 +73,7 @@
"Previous victories": "Tidligere seire", "Previous victories": "Tidligere seire",
"points until next level": "poeng til neste nivå", "points until next level": "poeng til neste nivå",
"Read more": "Les mer", "Read more": "Les mer",
"Read more about the hotel": "Les mer om hotellet",
"Retype new password": "Skriv inn nytt passord på nytt", "Retype new password": "Skriv inn nytt passord på nytt",
"Save": "Lagre", "Save": "Lagre",
"Select a country": "Velg et land", "Select a country": "Velg et land",
@@ -87,6 +88,7 @@
"Total Points": "Totale poeng", "Total Points": "Totale poeng",
"Transaction date": "Transaksjonsdato", "Transaction date": "Transaksjonsdato",
"Transactions": "Transaksjoner", "Transactions": "Transaksjoner",
"Tripadvisor reviews": "{rating} ({count} anmeldelser på Tripadvisor)",
"to": "til", "to": "til",
"User information": "Brukerinformasjon", "User information": "Brukerinformasjon",
"uppercase letter": "stor bokstav", "uppercase letter": "stor bokstav",

View File

@@ -73,6 +73,7 @@
"Previous victories": "Tidigare segrar", "Previous victories": "Tidigare segrar",
"points until next level": "poäng till nästa nivå", "points until next level": "poäng till nästa nivå",
"Read more": "Läs mer", "Read more": "Läs mer",
"Read more about the hotel": "Läs mer om hotellet",
"Retype new password": "Upprepa nytt lösenord", "Retype new password": "Upprepa nytt lösenord",
"Save": "Spara", "Save": "Spara",
"Select a country": "Välj ett land", "Select a country": "Välj ett land",
@@ -87,6 +88,7 @@
"Total Points": "Total poäng", "Total Points": "Total poäng",
"Transaction date": "Transaktionsdatum", "Transaction date": "Transaktionsdatum",
"Transactions": "Transaktioner", "Transactions": "Transaktioner",
"Tripadvisor reviews": "{rating} ({count} recensioner på Tripadvisor)",
"to": "till", "to": "till",
"User information": "Användar information", "User information": "Användar information",
"uppercase letter": "stor bokstav", "uppercase letter": "stor bokstav",