Merged in fix/labels-english (pull request #1249)

fix(i18n): validated English messages

Approved-by: Bianca Widstam
Approved-by: Christian Andolf
This commit is contained in:
Michael Zetterberg
2025-02-06 20:54:25 +00:00
parent 9fafb33d26
commit 1d822dad5a
21 changed files with 489 additions and 167 deletions

View File

@@ -177,7 +177,7 @@ export default function Search({ locations, handlePressEnter }: SearchProps) {
}, [location])
function getLocationLabel(): string {
const fallbackLabel = intl.formatMessage({ id: "Where to" })
const fallbackLabel = intl.formatMessage({ id: "Where to?" })
if (location?.type === "hotels") {
return location?.relationships?.city?.name || fallbackLabel
}
@@ -230,7 +230,7 @@ export default function Search({ locations, handlePressEnter }: SearchProps) {
openMenu()
},
placeholder: intl.formatMessage({
id: "Destinations & hotels",
id: "Hotels & Destinations",
}),
...register(name, {
onChange: handleOnChange,
@@ -267,7 +267,7 @@ export function SearchSkeleton() {
<div className={styles.container}>
<div className={styles.label}>
<Caption type="bold" color="red" asChild>
<span>{intl.formatMessage({ id: "Where to" })}</span>
<span>{intl.formatMessage({ id: "Where to?" })}</span>
</Caption>
</div>
<div>