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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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