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:
@@ -38,6 +38,7 @@ export function AncillaryCard({ ancillary }: AncillaryCardProps) {
|
||||
<Body color="uiTextHighContrast">
|
||||
{ancillary.price.included
|
||||
? intl.formatMessage({
|
||||
id: "common.included",
|
||||
defaultMessage: "Included",
|
||||
})
|
||||
: priceMsg}
|
||||
@@ -51,10 +52,12 @@ export function AncillaryCard({ ancillary }: AncillaryCardProps) {
|
||||
<Body textAlign="right" color="uiTextHighContrast">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "{value} points",
|
||||
id: "common.numberOfPoints",
|
||||
defaultMessage:
|
||||
"{points, plural, one {# point} other {# points}}",
|
||||
},
|
||||
{
|
||||
value: ancillary.points,
|
||||
points: ancillary.points,
|
||||
}
|
||||
)}
|
||||
</Body>
|
||||
|
||||
@@ -71,6 +71,7 @@ export default function Breadcrumbs({
|
||||
return (
|
||||
<nav
|
||||
aria-label={intl.formatMessage({
|
||||
id: "breadcrumbs.label",
|
||||
defaultMessage: "Breadcrumbs",
|
||||
})}
|
||||
className={classNames}
|
||||
|
||||
@@ -69,9 +69,11 @@ export default function PasswordInput({
|
||||
label ||
|
||||
(isNewPassword
|
||||
? intl.formatMessage({
|
||||
id: "passwordInput.newPasswordLabel",
|
||||
defaultMessage: "New password",
|
||||
})
|
||||
: intl.formatMessage({
|
||||
id: "common.password",
|
||||
defaultMessage: "Password",
|
||||
}))
|
||||
}
|
||||
@@ -92,9 +94,11 @@ export default function PasswordInput({
|
||||
aria-label={
|
||||
isPasswordVisible
|
||||
? intl.formatMessage({
|
||||
id: "passwordInput.hidePassword",
|
||||
defaultMessage: "Hide password",
|
||||
})
|
||||
: intl.formatMessage({
|
||||
id: "passwordInput.showPassword",
|
||||
defaultMessage: "Show password",
|
||||
})
|
||||
}
|
||||
@@ -158,6 +162,7 @@ function NewPasswordValidation({
|
||||
case "length":
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "passwordInput.lengthRequirement",
|
||||
defaultMessage: "{min} to {max} characters",
|
||||
},
|
||||
{
|
||||
@@ -168,6 +173,7 @@ function NewPasswordValidation({
|
||||
case "hasUppercase":
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "passwordInput.uppercaseRequirement",
|
||||
defaultMessage: "{count} uppercase letter",
|
||||
},
|
||||
{ count: 1 }
|
||||
@@ -175,6 +181,7 @@ function NewPasswordValidation({
|
||||
case "hasLowercase":
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "passwordInput.lowercaseRequirement",
|
||||
defaultMessage: "{count} lowercase letter",
|
||||
},
|
||||
{ count: 1 }
|
||||
@@ -182,6 +189,7 @@ function NewPasswordValidation({
|
||||
case "hasNumber":
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "passwordInput.numberRequirement",
|
||||
defaultMessage: "{count} number",
|
||||
},
|
||||
{ count: 1 }
|
||||
@@ -189,12 +197,14 @@ function NewPasswordValidation({
|
||||
case "hasSpecialChar":
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "passwordInput.specialCharacterRequirement",
|
||||
defaultMessage: "{count} special character",
|
||||
},
|
||||
{ count: 1 }
|
||||
)
|
||||
case "allowedCharacters":
|
||||
return intl.formatMessage({
|
||||
id: "passwordInput.allowedCharactersRequirement",
|
||||
defaultMessage: "Only allowed characters",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
<span>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "meetingRoomCard.maxSeatings",
|
||||
defaultMessage: "max {seatings} pers",
|
||||
},
|
||||
{ seatings: maxSeatings }
|
||||
@@ -102,6 +103,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
name={translateSeatingType(seating.type, intl)}
|
||||
value={intl.formatMessage(
|
||||
{
|
||||
id: "meetingRoomCard.numberOfPeople",
|
||||
defaultMessage: "{number} people",
|
||||
},
|
||||
{ number: seating.capacity }
|
||||
@@ -113,10 +115,12 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
<tbody className={styles.rowItem}>
|
||||
<TableRow
|
||||
name={intl.formatMessage({
|
||||
id: "meetingRoomCard.locationInHotel",
|
||||
defaultMessage: "Location in hotel",
|
||||
})}
|
||||
value={intl.formatMessage(
|
||||
{
|
||||
id: "meetingRoomCard.floorNumber",
|
||||
defaultMessage: "Floor {floorNumber}",
|
||||
},
|
||||
{
|
||||
@@ -126,6 +130,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
/>
|
||||
<TableRow
|
||||
name={intl.formatMessage({
|
||||
id: "meetingRoomCard.lighting",
|
||||
defaultMessage: "Lighting",
|
||||
})}
|
||||
value={translateRoomLighting(room.lighting, intl)}
|
||||
@@ -133,6 +138,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
{room.doorHeight && room.doorWidth ? (
|
||||
<TableRow
|
||||
name={intl.formatMessage({
|
||||
id: "meetingRoomCard.accessSize",
|
||||
defaultMessage: "Access size",
|
||||
})}
|
||||
value={`${room.doorHeight} x ${room.doorWidth} m`}
|
||||
@@ -141,6 +147,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
||||
{room.length && room.width && room.height ? (
|
||||
<TableRow
|
||||
name={intl.formatMessage({
|
||||
id: "meetingRoomCard.dimensions",
|
||||
defaultMessage: "Dimensions",
|
||||
})}
|
||||
value={`${room.length} x ${room.width} x ${room.height} m`}
|
||||
|
||||
@@ -8,35 +8,43 @@ export function translateRoomLighting(option: string, intl: IntlShape) {
|
||||
switch (option) {
|
||||
case RoomLighting.WindowsNaturalDaylight:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.windowsNaturalDaylight",
|
||||
defaultMessage: "Windows with natural daylight",
|
||||
})
|
||||
case RoomLighting.IndoorWindowsExcellentLighting:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.indoorWindowsExcellentLighting",
|
||||
defaultMessage: "Indoor windows and excellent lighting",
|
||||
})
|
||||
case RoomLighting.IndoorWindows:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.indoorWindows",
|
||||
defaultMessage: "Indoor windows facing the hotel",
|
||||
})
|
||||
case RoomLighting.NoWindows:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.noWindows",
|
||||
defaultMessage: "No windows",
|
||||
})
|
||||
case RoomLighting.NoWindowsExcellentLighting:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.noWindowsExcellentLighting",
|
||||
defaultMessage: "No windows but excellent lighting",
|
||||
})
|
||||
case RoomLighting.WindowsNaturalDaylightBlackoutFacilities:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.windowsNaturalDaylightBlackoutFacilities",
|
||||
defaultMessage: "Windows natural daylight and blackout facilities",
|
||||
})
|
||||
case RoomLighting.WindowsNaturalDaylightExcellentView:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.windowsNaturalDaylightExcellentView",
|
||||
defaultMessage: "Windows natural daylight and excellent view",
|
||||
})
|
||||
default:
|
||||
logger.warn(`Unsupported conference room ligthing option: ${option}`)
|
||||
return intl.formatMessage({
|
||||
id: "common.NA",
|
||||
defaultMessage: "N/A",
|
||||
})
|
||||
}
|
||||
@@ -46,39 +54,48 @@ export function translateSeatingType(type: string, intl: IntlShape) {
|
||||
switch (type) {
|
||||
case SeatingType.Boardroom:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.boardroom",
|
||||
defaultMessage: "Boardroom",
|
||||
})
|
||||
case SeatingType.Cabaret:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.cabaret",
|
||||
defaultMessage: "Cabaret seating",
|
||||
})
|
||||
case SeatingType.Classroom:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.classroom",
|
||||
defaultMessage: "Classroom",
|
||||
})
|
||||
case SeatingType.FullCircleTable:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.fullCircleTable",
|
||||
defaultMessage: "Full circle",
|
||||
})
|
||||
case SeatingType.HalfCircle:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.halfCircle",
|
||||
defaultMessage: "Half circle",
|
||||
})
|
||||
case SeatingType.StandingTable:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.standingTable",
|
||||
defaultMessage: "Standing table",
|
||||
})
|
||||
case SeatingType.Theatre:
|
||||
return intl.formatMessage({
|
||||
defaultMessage: "Theater",
|
||||
id: "meetingRoomCard.theatre",
|
||||
defaultMessage: "Theatre",
|
||||
})
|
||||
case SeatingType.UShape:
|
||||
return intl.formatMessage({
|
||||
id: "meetingRoomCard.uShape",
|
||||
defaultMessage: "U-shape",
|
||||
})
|
||||
default:
|
||||
logger.warn(`Unsupported conference room type : ${type}`)
|
||||
return intl.formatMessage({
|
||||
id: "common.NA",
|
||||
defaultMessage: "N/A",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -29,12 +29,14 @@ export default function ShowMoreButton({
|
||||
|
||||
if (!textShowMore) {
|
||||
textShowMore = intl.formatMessage({
|
||||
id: "common.showMore",
|
||||
defaultMessage: "Show more",
|
||||
})
|
||||
}
|
||||
|
||||
if (!textShowLess) {
|
||||
textShowLess = intl.formatMessage({
|
||||
id: "common.showLess",
|
||||
defaultMessage: "Show less",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ export default function TeaserCardSidepeek({
|
||||
handleClose={() => setSidePeekIsOpen(false)}
|
||||
openInRoot
|
||||
closeLabel={intl.formatMessage({
|
||||
id: "common.close",
|
||||
defaultMessage: "Close",
|
||||
})}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user