fix: add translations for tripadvisor and read more about hotel text
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user