fix(SW-203): added translations and now using updater function to set state

This commit is contained in:
Erik Tiekstra
2024-08-14 09:36:58 +02:00
parent 2d791557b7
commit 0a2fb14383
6 changed files with 9 additions and 4 deletions

View File

@@ -41,11 +41,11 @@ export function Rooms({ rooms }: RoomsProps) {
.sort((a, b) => a.sortOrder - b.sortOrder)
function handleToggleShowMore() {
const newState = !allRoomsVisible
setAllRoomsVisible(newState)
if (scrollRef.current && !newState) {
if (scrollRef.current && allRoomsVisible) {
scrollRef.current.scrollIntoView({ behavior: "smooth" })
}
setAllRoomsVisible((previousState) => !previousState)
}
return (

View File

@@ -104,6 +104,7 @@
"Select country of residence": "Vælg bopælsland",
"Select date of birth": "Vælg fødselsdato",
"Select language": "Vælg sprog",
"Show less": "Vis mindre",
"Show more": "Vis mere",
"Show all amenities": "Vis alle faciliteter",
"Skip to main content": "Spring over og gå til hovedindhold",

View File

@@ -99,7 +99,8 @@
"Select country of residence": "Wählen Sie das Land Ihres Wohnsitzes aus",
"Select date of birth": "Geburtsdatum auswählen",
"Select language": "Sprache auswählen",
"Show more": "Zeig mehr",
"Show less": "Weniger anzeigen",
"Show more": "Mehr anzeigen",
"Show all amenities": "Alle Annehmlichkeiten anzeigen",
"Skip to main content": "Direkt zum Inhalt",
"Something went wrong!": "Etwas ist schief gelaufen!",

View File

@@ -104,6 +104,7 @@
"Select country of residence": "Valitse asuinmaa",
"Select date of birth": "Valitse syntymäaika",
"Select language": "Valitse kieli",
"Show less": "Näytä vähemmän",
"Show more": "Näytä lisää",
"Show all amenities": "Näytä kaikki mukavuudet",
"Skip to main content": "Siirry pääsisältöön",

View File

@@ -104,6 +104,7 @@
"Select country of residence": "Velg bostedsland",
"Select date of birth": "Velg fødselsdato",
"Select language": "Velg språk",
"Show less": "Vis mindre",
"Show more": "Vis mer",
"Show all amenities": "Vis alle fasiliteter",
"Skip to main content": "Gå videre til hovedsiden",

View File

@@ -107,6 +107,7 @@
"Select country of residence": "Välj bosättningsland",
"Select date of birth": "Välj födelsedatum",
"Select language": "Välj språk",
"Show less": "Visa mindre",
"Show more": "Visa mer",
"Show all amenities": "Visa alla bekvämligheter",
"Skip to main content": "Fortsätt till huvudinnehåll",