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 }
)
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 (
<section className={styles.introSection}>
@@ -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" })}
<ArrowRight color="peach80" />
</Link>
</div>