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:
Joakim Jäderberg
2025-10-22 11:00:03 +00:00
parent bdfe2ab213
commit aafad9781f
499 changed files with 93363 additions and 99164 deletions

View File

@@ -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`}

View File

@@ -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",
})
}