fix: Add translations for show all amenities text

This commit is contained in:
Chuma McPhoy
2024-07-08 09:42:28 +02:00
parent b786933e51
commit 6a4b4ce845
7 changed files with 11 additions and 2 deletions

View File

@@ -3,16 +3,18 @@ import { ChevronRightIcon } from "@/components/Icons"
import Button from "@/components/TempDesignSystem/Button"
import Body from "@/components/TempDesignSystem/Text/Body"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import { getIntl } from "@/i18n"
import styles from "./amenitiesList.module.css"
import { HotelData } from "@/types/hotel"
export default function AmenitiesList({
export default async function AmenitiesList({
detailedFacilities,
}: {
detailedFacilities: HotelData["data"]["attributes"]["detailedFacilities"]
}) {
const { formatMessage } = await getIntl()
const sortedAmenities = detailedFacilities
.sort((a, b) => b.sortOrder - a.sortOrder)
.slice(0, 5)
@@ -31,13 +33,14 @@ export default function AmenitiesList({
)
})}
</div>
{/*TODO: This should open a side peek. Add once the Side Peek component has been merged. */}
<Button
className={styles.showAllButton}
theme="base"
variant="icon"
intent="text"
>
Show all amenities
{formatMessage({ id: "Show all amenities" })}
<ChevronRightIcon />
</Button>
</section>

View File

@@ -81,6 +81,7 @@
"Select date of birth": "Vælg fødselsdato",
"Select language": "Vælg sprog",
"Show more": "Vis mere",
"Show all amenities": "Vis alle faciliteter",
"Skip to main content": "Spring over og gå til hovedindhold",
"Something went wrong!": "Noget gik galt!",
"Street": "Gade",

View File

@@ -81,6 +81,7 @@
"Select date of birth": "Geburtsdatum auswählen",
"Select language": "Sprache auswählen",
"Show more": "Zeig mehr",
"Show all amenities": "Alle Annehmlichkeiten anzeigen",
"Skip to main content": "Direkt zum Inhalt",
"Something went wrong!": "Etwas ist schief gelaufen!",
"Street": "Straße",

View File

@@ -82,6 +82,7 @@
"Select date of birth": "Select date of birth",
"Select language": "Select language",
"Show more": "Show more",
"Show all amenities": "Show all amenities",
"Skip to main content": "Skip to main content",
"Something went wrong!": "Something went wrong!",
"Street": "Street",

View File

@@ -81,6 +81,7 @@
"Select date of birth": "Valitse syntymäaika",
"Select language": "Valitse kieli",
"Show more": "Näytä lisää",
"Show all amenities": "Näytä kaikki mukavuudet",
"Skip to main content": "Siirry pääsisältöön",
"Something went wrong!": "Jotain meni pieleen!",
"Street": "Katu",

View File

@@ -81,6 +81,7 @@
"Select date of birth": "Velg fødselsdato",
"Select language": "Velg språk",
"Show more": "Vis mer",
"Show all amenities": "Vis alle fasiliteter",
"Skip to main content": "Gå videre til hovedsiden",
"Something went wrong!": "Noe gikk galt!",
"Street": "Gate",

View File

@@ -81,6 +81,7 @@
"Select date of birth": "Välj födelsedatum",
"Select language": "Välj språk",
"Show more": "Visa mer",
"Show all amenities": "Visa alla bekvämligheter",
"Skip to main content": "Fortsätt till huvudinnehåll",
"Something went wrong!": "Något gick fel!",
"Street": "Gata",