Merged in feat/lokalise-rebuild (pull request #2993)
Feat/lokalise rebuild * chore(lokalise): update translation ids * chore(lokalise): easier to switch between projects * chore(lokalise): update translation ids * . * . * . * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * chore(lokalise): new translations * merge * switch to errors for missing id's * merge * sync translations Approved-by: Linus Flood
This commit is contained in:
@@ -27,9 +27,11 @@ export default function ParkingList({
|
||||
const intl = useIntl()
|
||||
|
||||
const canMakeReservationYesMsg = intl.formatMessage({
|
||||
id: 'parkingInformation.reservedInAdvanceYes',
|
||||
defaultMessage: 'Parking can be reserved in advance: Yes',
|
||||
})
|
||||
const canMakeReservationNoMsg = intl.formatMessage({
|
||||
id: 'parkingInformation.reservedInAdvanceNo',
|
||||
defaultMessage: 'Parking can be reserved in advance: No',
|
||||
})
|
||||
|
||||
@@ -40,6 +42,7 @@ export default function ParkingList({
|
||||
<li>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.numberOfChargingPoints',
|
||||
defaultMessage:
|
||||
'Number of charging points for electric cars: {number}',
|
||||
},
|
||||
@@ -56,6 +59,7 @@ export default function ParkingList({
|
||||
<li>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.numberOfParkingSpots',
|
||||
defaultMessage: 'Number of parking spots: {number}',
|
||||
},
|
||||
{ number: numberOfParkingSpots }
|
||||
@@ -66,6 +70,7 @@ export default function ParkingList({
|
||||
<li>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.distanceToHotel',
|
||||
defaultMessage: 'Distance to hotel: {distanceInM} m',
|
||||
},
|
||||
{ distanceInM: distanceToHotel }
|
||||
@@ -76,6 +81,7 @@ export default function ParkingList({
|
||||
<li>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: 'parkingInformation.address',
|
||||
defaultMessage: 'Address: {address}',
|
||||
},
|
||||
{ address }
|
||||
|
||||
@@ -28,7 +28,10 @@ export default function ParkingPrices({
|
||||
return (
|
||||
<Typography variant="Body/Paragraph/mdBold">
|
||||
<p className={styles.wrapper}>
|
||||
{intl.formatMessage({ defaultMessage: 'Free parking' })}
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.freeParking',
|
||||
defaultMessage: 'Free parking',
|
||||
})}
|
||||
</p>
|
||||
</Typography>
|
||||
)
|
||||
@@ -47,6 +50,7 @@ export default function ParkingPrices({
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<dd>
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.atACost',
|
||||
defaultMessage: 'At a cost',
|
||||
})}
|
||||
</dd>
|
||||
@@ -72,7 +76,12 @@ export default function ParkingPrices({
|
||||
{startTime && endTime && period !== ParkingPricePeriods.allDay ? (
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<div className={styles.information}>
|
||||
<dt>{intl.formatMessage({ defaultMessage: 'From' })}</dt>
|
||||
<dt>
|
||||
{intl.formatMessage({
|
||||
id: 'common.from',
|
||||
defaultMessage: 'From',
|
||||
})}
|
||||
</dt>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
<dd>{`${startTime}-${endTime}`}</dd>
|
||||
</div>
|
||||
|
||||
@@ -6,18 +6,22 @@ export function getPeriod(intl: IntlShape, period?: string) {
|
||||
switch (period) {
|
||||
case ParkingPricePeriods.hour:
|
||||
return intl.formatMessage({
|
||||
id: 'parkingInformation.pricePerHour',
|
||||
defaultMessage: 'Price per hour',
|
||||
})
|
||||
case ParkingPricePeriods.day:
|
||||
return intl.formatMessage({
|
||||
id: 'parkingInformation.pricePerDay',
|
||||
defaultMessage: 'Price per day',
|
||||
})
|
||||
case ParkingPricePeriods.night:
|
||||
return intl.formatMessage({
|
||||
id: 'parkingInformation.pricePerNight',
|
||||
defaultMessage: 'Price per night',
|
||||
})
|
||||
case ParkingPricePeriods.allDay:
|
||||
return intl.formatMessage({
|
||||
id: 'parkingInformation.pricePer24Hours',
|
||||
defaultMessage: 'Price per 24 hours',
|
||||
})
|
||||
default:
|
||||
|
||||
@@ -42,13 +42,19 @@ export default function ParkingInformation({
|
||||
<div className={styles.prices}>
|
||||
<Typography variant="Body/Paragraph/mdBold">
|
||||
<h5 className={styles.heading}>
|
||||
{intl.formatMessage({ defaultMessage: 'Prices' })}
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.prices',
|
||||
defaultMessage: 'Prices',
|
||||
})}
|
||||
</h5>
|
||||
</Typography>
|
||||
<div className={styles.priceWrapper}>
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<h6 className={styles.priceHeading}>
|
||||
{intl.formatMessage({ defaultMessage: 'Weekday prices' })}
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.weekdayPrices',
|
||||
defaultMessage: 'Weekday prices',
|
||||
})}
|
||||
</h6>
|
||||
</Typography>
|
||||
<Divider />
|
||||
@@ -63,7 +69,10 @@ export default function ParkingInformation({
|
||||
<div className={styles.priceWrapper}>
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<h6 className={styles.priceHeading}>
|
||||
{intl.formatMessage({ defaultMessage: 'Weekend prices' })}
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.weekendPrices',
|
||||
defaultMessage: 'Weekend prices',
|
||||
})}
|
||||
</h6>
|
||||
</Typography>
|
||||
<Divider />
|
||||
@@ -82,7 +91,10 @@ export default function ParkingInformation({
|
||||
href={parking.externalParkingUrl}
|
||||
target="_blank"
|
||||
>
|
||||
{intl.formatMessage({ defaultMessage: 'Book parking' })}
|
||||
{intl.formatMessage({
|
||||
id: 'parkingInformation.bookParking',
|
||||
defaultMessage: 'Book parking',
|
||||
})}
|
||||
<MaterialIcon icon="open_in_new" color="CurrentColor" />
|
||||
</ButtonLink>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user