feat(SW-281): use distanceToCenter translation
This commit is contained in:
@@ -17,7 +17,7 @@ export default async function HotelListing({
|
||||
altText,
|
||||
name,
|
||||
address,
|
||||
distance,
|
||||
distanceToCentre,
|
||||
description,
|
||||
}: HotelListingProps) {
|
||||
const intl = await getIntl()
|
||||
@@ -43,7 +43,10 @@ export default async function HotelListing({
|
||||
<Divider variant="vertical" color="beige" />
|
||||
</div>
|
||||
<Caption color="uiTextPlaceholder">
|
||||
{`${distance} ${intl.formatMessage({ id: "km to city center" })}`}
|
||||
{intl.formatMessage(
|
||||
{ id: "Distance to city centre" },
|
||||
{ number: distanceToCentre }
|
||||
)}
|
||||
</Caption>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user