feat(WEB-220): label translations

This commit is contained in:
Simon Emanuelsson
2024-05-22 10:27:16 +02:00
parent 125998efcf
commit de79c2dc80
80 changed files with 1104 additions and 460 deletions

View File

@@ -1,13 +1,16 @@
"use client"
import "@scandic-hotels/design-system/current/style.css"
import { _ } from "@/lib/translation"
import { useIntl } from "react-intl"
import styles from "./bookingButton.module.css"
export default function BookingButton({ href }: { href: string }) {
const { formatMessage } = useIntl()
return (
<a className={styles.button} href={href}>
{_("Book")}
{formatMessage({ id: "Book" })}
</a>
)
}