fix(i18n): prepare for Lokalise
This commit is contained in:
@@ -16,6 +16,9 @@ export default function Contact({ hotel }: ContactProps) {
|
||||
const lang = useLang()
|
||||
const intl = useIntl()
|
||||
|
||||
const addressStr = `${hotel.address.streetAddress}, `
|
||||
const cityStr = hotel.address.city
|
||||
|
||||
return (
|
||||
<section className={styles.wrapper}>
|
||||
<address className={styles.address}>
|
||||
@@ -24,8 +27,11 @@ export default function Contact({ hotel }: ContactProps) {
|
||||
<Body textTransform="bold">
|
||||
{intl.formatMessage({ id: "Address" })}
|
||||
</Body>
|
||||
<Body>{`${hotel.address.streetAddress}, `}</Body>
|
||||
<Body>{hotel.address.city}</Body>
|
||||
<Body>
|
||||
{addressStr}
|
||||
<br />
|
||||
{cityStr}
|
||||
</Body>
|
||||
</li>
|
||||
<li>
|
||||
<Body textTransform="bold">
|
||||
@@ -34,7 +40,9 @@ export default function Contact({ hotel }: ContactProps) {
|
||||
<Link
|
||||
href={`https://www.google.com/maps/dir/?api=1&destination=${hotel.location.latitude},${hotel.location.longitude}`}
|
||||
>
|
||||
<span className={styles.link}>Google Maps</span>
|
||||
<span className={styles.link}>
|
||||
{intl.formatMessage({ id: "Google Maps" })}
|
||||
</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user