Merged in feat/lokalise-sync-260105 (pull request #3387)

feat(lokalise): fixed correct message and sync

* feat(lokalise): fixed correct message and sync
This commit is contained in:
Linus Flood
2026-01-05 11:33:08 +00:00
parent d23137a69d
commit 3d62c16899
4 changed files with 937 additions and 221 deletions

View File

@@ -33,6 +33,12 @@
"value": "Reserve with card" "value": "Reserve with card"
} }
], ],
"addAncillary.deliveryDetailsStep.commentLabel": [
{
"type": 0,
"value": "Is there anything else you would like us to know before your arrival?"
}
],
"addAncillary.deliveryDetailsStep.deliveryTimeDescription": [ "addAncillary.deliveryDetailsStep.deliveryTimeDescription": [
{ {
"type": 0, "type": 0,
@@ -42,7 +48,7 @@
"addAncillary.deliveryDetailsStep.optionalTextLabel": [ "addAncillary.deliveryDetailsStep.optionalTextLabel": [
{ {
"type": 0, "type": 0,
"value": "Other Requests" "value": "Other requests"
} }
], ],
"addAncillary.selectQuantityStep.breakfastInfoMessage": [ "addAncillary.selectQuantityStep.breakfastInfoMessage": [
@@ -51,6 +57,20 @@
"value": "Breakfast can only be added for the entire duration of the stay and for all guests." "value": "Breakfast can only be added for the entire duration of the stay and for all guests."
} }
], ],
"addAncillary.selectQuantityStep.costPerUnit": [
{
"type": 1,
"value": "cost"
},
{
"type": 0,
"value": "/per "
},
{
"type": 1,
"value": "unit"
}
],
"addAncillary.selectQuantityStep.insufficientPoints": [ "addAncillary.selectQuantityStep.insufficientPoints": [
{ {
"type": 0, "type": 0,
@@ -81,6 +101,18 @@
"value": "Select quantity" "value": "Select quantity"
} }
], ],
"addAncillary.selectQuantityStep.selectQuantityTitle": [
{
"type": 0,
"value": "How would you like to pay?"
}
],
"addAncillaryFlowModal.addToBooking": [
{
"type": 0,
"value": "Add to booking"
}
],
"addAncillaryFlowModal.ancillaryAdded": [ "addAncillaryFlowModal.ancillaryAdded": [
{ {
"type": 1, "type": 1,
@@ -111,6 +143,16 @@
"value": "Free for kids (under 4)" "value": "Free for kids (under 4)"
} }
], ],
"addAncillaryFlowModal.perUnit": [
{
"type": 0,
"value": "/per "
},
{
"type": 1,
"value": "unit"
}
],
"addAncillaryFlowModal.pricePerNightPerAdult": [ "addAncillaryFlowModal.pricePerNightPerAdult": [
{ {
"type": 1, "type": 1,
@@ -131,6 +173,12 @@
"value": "/night for kids (ages 412)" "value": "/night for kids (ages 412)"
} }
], ],
"addAncillaryFlowModal.proceedToDelivery": [
{
"type": 0,
"value": "Proceed to delivery"
}
],
"alternativeHotels.title": [ "alternativeHotels.title": [
{ {
"type": 0, "type": 0,
@@ -147,6 +195,42 @@
"value": "Delivered at:" "value": "Delivered at:"
} }
], ],
"ancillaries.deliveryDetailsStep.changeTime.cta": [
{
"type": 0,
"value": "Change time"
}
],
"ancillaries.deliveryDetailsStep.itemTitle": [
{
"type": 0,
"value": "Your item"
}
],
"ancillaries.deliveryDetailsStep.select.errorMessage": [
{
"type": 0,
"value": "Select a time for when you want your extras to be delivered."
}
],
"ancillaries.deliveryDetailsStep.select.title": [
{
"type": 0,
"value": "Select time of delivery"
}
],
"ancillaries.deliveryDetailsStep.specialRequests.cta": [
{
"type": 0,
"value": "Add special request"
}
],
"ancillaries.deliveryDetailsStep.specialRequests.title": [
{
"type": 0,
"value": "Special requests (optional)"
}
],
"ancillaries.unableToDisplayBreakfastPrices": [ "ancillaries.unableToDisplayBreakfastPrices": [
{ {
"type": 0, "type": 0,
@@ -1073,6 +1157,12 @@
"value": "A destination or hotel name is needed to be able to search for a hotel room." "value": "A destination or hotel name is needed to be able to search for a hotel room."
} }
], ],
"bookingwidget.dropdown.children": [
{
"type": 0,
"value": "Children (012 years)"
}
],
"breadcrumbs.label": [ "breadcrumbs.label": [
{ {
"type": 0, "type": 0,
@@ -1995,6 +2085,42 @@
"value": "or" "value": "or"
} }
], ],
"common.orNumberOfPoints": [
{
"type": 0,
"value": "or "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " point"
}
]
},
"other": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " points"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "points"
}
],
"common.other": [ "common.other": [
{ {
"type": 0, "type": 0,
@@ -2025,12 +2151,24 @@
"value": "Password" "value": "Password"
} }
], ],
"common.paymentCard": [
{
"type": 0,
"value": "Payment card"
}
],
"common.perAdultNight": [ "common.perAdultNight": [
{ {
"type": 0, "type": 0,
"value": "Per adult/night" "value": "Per adult/night"
} }
], ],
"common.person": [
{
"type": 0,
"value": "person"
}
],
"common.petFriendly": [ "common.petFriendly": [
{ {
"type": 0, "type": 0,
@@ -2116,6 +2254,12 @@
"value": "Remove" "value": "Remove"
} }
], ],
"common.reviewAndConfirm": [
{
"type": 0,
"value": "Review & Confirm"
}
],
"common.room": [ "common.room": [
{ {
"type": 0, "type": 0,
@@ -4298,12 +4442,24 @@
"value": "count" "value": "count"
} }
], ],
"lightbox.nextImage": [
{
"type": 0,
"value": "Next image"
}
],
"lightbox.openImage": [ "lightbox.openImage": [
{ {
"type": 0, "type": 0,
"value": "Open image" "value": "Open image"
} }
], ],
"lightbox.previousImage": [
{
"type": 0,
"value": "Previous image"
}
],
"linkEmploymentError.alreadyLinkedHeading": [ "linkEmploymentError.alreadyLinkedHeading": [
{ {
"type": 0, "type": 0,
@@ -5623,6 +5779,30 @@
"value": "My membership cards" "value": "My membership cards"
} }
], ],
"myPages.myStay.ancillaries.insufficientPointsMessage": [
{
"type": 0,
"value": "You don't have enough points for this item"
}
],
"myPages.myStay.ancillaries.reachedMaxPointsMessage": [
{
"type": 0,
"value": "You have reached your points limit."
}
],
"myPages.myStay.ancillaries.reachedMaxPointsStepperMessage": [
{
"type": 0,
"value": "Youve reached your points limit and cant add more items with points."
}
],
"myPages.myStay.ancillaries.spendablePointsTitle": [
{
"type": 0,
"value": "Your spendable points"
}
],
"myPages.nameWithCardMembershipType": [ "myPages.nameWithCardMembershipType": [
{ {
"type": 0, "type": 0,
@@ -6609,6 +6789,82 @@
"value": " days" "value": " days"
} }
], ],
"nextStay.inXMonths": [
{
"type": 0,
"value": "In "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " month"
}
]
},
"other": {
"value": [
{
"type": 0,
"value": " "
},
{
"type": 7
},
{
"type": 0,
"value": " months"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "months"
}
],
"nextStay.inXYears": [
{
"type": 0,
"value": "In "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " year"
}
]
},
"other": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " years"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "years"
}
],
"nextStay.myStayAt": [ "nextStay.myStayAt": [
{ {
"type": 0, "type": 0,
@@ -7240,6 +7496,50 @@
"value": "expiryDate" "value": "expiryDate"
} }
], ],
"previousStays.nightsStayed": [
{
"type": 0,
"value": "Nights stayed"
}
],
"previousStays.progressAriaLabel": [
{
"type": 1,
"value": "nightsStayed"
},
{
"type": 0,
"value": " of "
},
{
"type": 1,
"value": "maxNights"
},
{
"type": 0,
"value": " nights stayed towards "
},
{
"type": 1,
"value": "levelName"
}
],
"previousStays.sinceDate": [
{
"type": 0,
"value": "Since "
},
{
"type": 1,
"value": "date"
}
],
"previousStays.totalStays": [
{
"type": 0,
"value": "Total stays"
}
],
"price.numberOfVouchers": [ "price.numberOfVouchers": [
{ {
"offset": 0, "offset": 0,
@@ -7904,6 +8204,30 @@
"value": "Menus" "value": "Menus"
} }
], ],
"rewardNights.offerPrice": [
{
"type": 0,
"value": "Offer price"
}
],
"rewardNights.stayBetween:": [
{
"type": 0,
"value": "Stay between:"
}
],
"rewardNights.table.destination": [
{
"type": 0,
"value": "Destination"
}
],
"rewardNights.table.hotel": [
{
"type": 0,
"value": "Hotel"
}
],
"rewards.active": [ "rewards.active": [
{ {
"type": 0, "type": 0,
@@ -8423,7 +8747,7 @@
}, },
{ {
"type": 0, "type": 0,
"value": "-" "value": ""
}, },
{ {
"type": 1, "type": 1,
@@ -8899,6 +9223,18 @@
"value": "You have no upcoming stays at the moment" "value": "You have no upcoming stays at the moment"
} }
], ],
"stays.previous.title": [
{
"type": 0,
"value": "Previous stays"
}
],
"stays.upcoming.title": [
{
"type": 0,
"value": "Upcoming stays"
}
],
"stays.whereToGoNext": [ "stays.whereToGoNext": [
{ {
"type": 0, "type": 0,
@@ -9042,6 +9378,30 @@
"value": "User not found" "value": "User not found"
} }
], ],
"videoPlayer.mute": [
{
"type": 0,
"value": "Mute video"
}
],
"videoPlayer.pause": [
{
"type": 0,
"value": "Pause video"
}
],
"videoPlayer.play": [
{
"type": 0,
"value": "Play video"
}
],
"videoPlayer.unmute": [
{
"type": 0,
"value": "Unmute video"
}
],
"webview.genericUserError": [ "webview.genericUserError": [
{ {
"type": 0, "type": 0,

View File

@@ -150,7 +150,8 @@ function InnerSelectQuantityStep({
cost: intl.formatMessage( cost: intl.formatMessage(
{ {
id: "common.numberOfPoints", id: "common.numberOfPoints",
defaultMessage: "{points} points", defaultMessage:
"{points, plural, one {# point} other {# points}}",
}, },
{ points: pointsCost } { points: pointsCost }
), ),
@@ -162,7 +163,8 @@ function InnerSelectQuantityStep({
totalCostMessage={intl.formatMessage( totalCostMessage={intl.formatMessage(
{ {
id: "common.numberOfPoints", id: "common.numberOfPoints",
defaultMessage: "{points} points", defaultMessage:
"{points, plural, one {# point} other {# points}}",
}, },
{ points: pointsCost * quantity } { points: pointsCost * quantity }
)} )}

View File

@@ -33,6 +33,12 @@
"value": "Reserve with card" "value": "Reserve with card"
} }
], ],
"addAncillary.deliveryDetailsStep.commentLabel": [
{
"type": 0,
"value": "Is there anything else you would like us to know before your arrival?"
}
],
"addAncillary.deliveryDetailsStep.deliveryTimeDescription": [ "addAncillary.deliveryDetailsStep.deliveryTimeDescription": [
{ {
"type": 0, "type": 0,
@@ -42,7 +48,7 @@
"addAncillary.deliveryDetailsStep.optionalTextLabel": [ "addAncillary.deliveryDetailsStep.optionalTextLabel": [
{ {
"type": 0, "type": 0,
"value": "Other Requests" "value": "Other requests"
} }
], ],
"addAncillary.selectQuantityStep.breakfastInfoMessage": [ "addAncillary.selectQuantityStep.breakfastInfoMessage": [
@@ -51,6 +57,20 @@
"value": "Breakfast can only be added for the entire duration of the stay and for all guests." "value": "Breakfast can only be added for the entire duration of the stay and for all guests."
} }
], ],
"addAncillary.selectQuantityStep.costPerUnit": [
{
"type": 1,
"value": "cost"
},
{
"type": 0,
"value": "/per "
},
{
"type": 1,
"value": "unit"
}
],
"addAncillary.selectQuantityStep.insufficientPoints": [ "addAncillary.selectQuantityStep.insufficientPoints": [
{ {
"type": 0, "type": 0,
@@ -81,6 +101,18 @@
"value": "Select quantity" "value": "Select quantity"
} }
], ],
"addAncillary.selectQuantityStep.selectQuantityTitle": [
{
"type": 0,
"value": "How would you like to pay?"
}
],
"addAncillaryFlowModal.addToBooking": [
{
"type": 0,
"value": "Add to booking"
}
],
"addAncillaryFlowModal.ancillaryAdded": [ "addAncillaryFlowModal.ancillaryAdded": [
{ {
"type": 1, "type": 1,
@@ -111,6 +143,16 @@
"value": "Free for kids (under 4)" "value": "Free for kids (under 4)"
} }
], ],
"addAncillaryFlowModal.perUnit": [
{
"type": 0,
"value": "/per "
},
{
"type": 1,
"value": "unit"
}
],
"addAncillaryFlowModal.pricePerNightPerAdult": [ "addAncillaryFlowModal.pricePerNightPerAdult": [
{ {
"type": 1, "type": 1,
@@ -131,6 +173,12 @@
"value": "/night for kids (ages 412)" "value": "/night for kids (ages 412)"
} }
], ],
"addAncillaryFlowModal.proceedToDelivery": [
{
"type": 0,
"value": "Proceed to delivery"
}
],
"alternativeHotels.title": [ "alternativeHotels.title": [
{ {
"type": 0, "type": 0,
@@ -147,6 +195,42 @@
"value": "Delivered at:" "value": "Delivered at:"
} }
], ],
"ancillaries.deliveryDetailsStep.changeTime.cta": [
{
"type": 0,
"value": "Change time"
}
],
"ancillaries.deliveryDetailsStep.itemTitle": [
{
"type": 0,
"value": "Your item"
}
],
"ancillaries.deliveryDetailsStep.select.errorMessage": [
{
"type": 0,
"value": "Select a time for when you want your extras to be delivered."
}
],
"ancillaries.deliveryDetailsStep.select.title": [
{
"type": 0,
"value": "Select time of delivery"
}
],
"ancillaries.deliveryDetailsStep.specialRequests.cta": [
{
"type": 0,
"value": "Add special request"
}
],
"ancillaries.deliveryDetailsStep.specialRequests.title": [
{
"type": 0,
"value": "Special requests (optional)"
}
],
"ancillaries.unableToDisplayBreakfastPrices": [ "ancillaries.unableToDisplayBreakfastPrices": [
{ {
"type": 0, "type": 0,
@@ -1073,6 +1157,12 @@
"value": "A destination or hotel name is needed to be able to search for a hotel room." "value": "A destination or hotel name is needed to be able to search for a hotel room."
} }
], ],
"bookingwidget.dropdown.children": [
{
"type": 0,
"value": "Children (012 years)"
}
],
"breadcrumbs.label": [ "breadcrumbs.label": [
{ {
"type": 0, "type": 0,
@@ -1995,6 +2085,42 @@
"value": "or" "value": "or"
} }
], ],
"common.orNumberOfPoints": [
{
"type": 0,
"value": "or "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " point"
}
]
},
"other": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " points"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "points"
}
],
"common.other": [ "common.other": [
{ {
"type": 0, "type": 0,
@@ -2025,12 +2151,24 @@
"value": "Password" "value": "Password"
} }
], ],
"common.paymentCard": [
{
"type": 0,
"value": "Payment card"
}
],
"common.perAdultNight": [ "common.perAdultNight": [
{ {
"type": 0, "type": 0,
"value": "Per adult/night" "value": "Per adult/night"
} }
], ],
"common.person": [
{
"type": 0,
"value": "person"
}
],
"common.petFriendly": [ "common.petFriendly": [
{ {
"type": 0, "type": 0,
@@ -2116,6 +2254,12 @@
"value": "Remove" "value": "Remove"
} }
], ],
"common.reviewAndConfirm": [
{
"type": 0,
"value": "Review & Confirm"
}
],
"common.room": [ "common.room": [
{ {
"type": 0, "type": 0,
@@ -4298,12 +4442,24 @@
"value": "count" "value": "count"
} }
], ],
"lightbox.nextImage": [
{
"type": 0,
"value": "Next image"
}
],
"lightbox.openImage": [ "lightbox.openImage": [
{ {
"type": 0, "type": 0,
"value": "Open image" "value": "Open image"
} }
], ],
"lightbox.previousImage": [
{
"type": 0,
"value": "Previous image"
}
],
"linkEmploymentError.alreadyLinkedHeading": [ "linkEmploymentError.alreadyLinkedHeading": [
{ {
"type": 0, "type": 0,
@@ -5623,6 +5779,30 @@
"value": "My membership cards" "value": "My membership cards"
} }
], ],
"myPages.myStay.ancillaries.insufficientPointsMessage": [
{
"type": 0,
"value": "You don't have enough points for this item"
}
],
"myPages.myStay.ancillaries.reachedMaxPointsMessage": [
{
"type": 0,
"value": "You have reached your points limit."
}
],
"myPages.myStay.ancillaries.reachedMaxPointsStepperMessage": [
{
"type": 0,
"value": "Youve reached your points limit and cant add more items with points."
}
],
"myPages.myStay.ancillaries.spendablePointsTitle": [
{
"type": 0,
"value": "Your spendable points"
}
],
"myPages.nameWithCardMembershipType": [ "myPages.nameWithCardMembershipType": [
{ {
"type": 0, "type": 0,
@@ -6609,6 +6789,82 @@
"value": " days" "value": " days"
} }
], ],
"nextStay.inXMonths": [
{
"type": 0,
"value": "In "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " month"
}
]
},
"other": {
"value": [
{
"type": 0,
"value": " "
},
{
"type": 7
},
{
"type": 0,
"value": " months"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "months"
}
],
"nextStay.inXYears": [
{
"type": 0,
"value": "In "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " year"
}
]
},
"other": {
"value": [
{
"type": 7
},
{
"type": 0,
"value": " years"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "years"
}
],
"nextStay.myStayAt": [ "nextStay.myStayAt": [
{ {
"type": 0, "type": 0,
@@ -7240,6 +7496,50 @@
"value": "expiryDate" "value": "expiryDate"
} }
], ],
"previousStays.nightsStayed": [
{
"type": 0,
"value": "Nights stayed"
}
],
"previousStays.progressAriaLabel": [
{
"type": 1,
"value": "nightsStayed"
},
{
"type": 0,
"value": " of "
},
{
"type": 1,
"value": "maxNights"
},
{
"type": 0,
"value": " nights stayed towards "
},
{
"type": 1,
"value": "levelName"
}
],
"previousStays.sinceDate": [
{
"type": 0,
"value": "Since "
},
{
"type": 1,
"value": "date"
}
],
"previousStays.totalStays": [
{
"type": 0,
"value": "Total stays"
}
],
"price.numberOfVouchers": [ "price.numberOfVouchers": [
{ {
"offset": 0, "offset": 0,
@@ -7904,6 +8204,30 @@
"value": "Menus" "value": "Menus"
} }
], ],
"rewardNights.offerPrice": [
{
"type": 0,
"value": "Offer price"
}
],
"rewardNights.stayBetween:": [
{
"type": 0,
"value": "Stay between:"
}
],
"rewardNights.table.destination": [
{
"type": 0,
"value": "Destination"
}
],
"rewardNights.table.hotel": [
{
"type": 0,
"value": "Hotel"
}
],
"rewards.active": [ "rewards.active": [
{ {
"type": 0, "type": 0,
@@ -8423,7 +8747,7 @@
}, },
{ {
"type": 0, "type": 0,
"value": "-" "value": ""
}, },
{ {
"type": 1, "type": 1,
@@ -8899,6 +9223,18 @@
"value": "You have no upcoming stays at the moment" "value": "You have no upcoming stays at the moment"
} }
], ],
"stays.previous.title": [
{
"type": 0,
"value": "Previous stays"
}
],
"stays.upcoming.title": [
{
"type": 0,
"value": "Upcoming stays"
}
],
"stays.whereToGoNext": [ "stays.whereToGoNext": [
{ {
"type": 0, "type": 0,
@@ -9042,6 +9378,30 @@
"value": "User not found" "value": "User not found"
} }
], ],
"videoPlayer.mute": [
{
"type": 0,
"value": "Mute video"
}
],
"videoPlayer.pause": [
{
"type": 0,
"value": "Pause video"
}
],
"videoPlayer.play": [
{
"type": 0,
"value": "Play video"
}
],
"videoPlayer.unmute": [
{
"type": 0,
"value": "Unmute video"
}
],
"webview.genericUserError": [ "webview.genericUserError": [
{ {
"type": 0, "type": 0,

View File

@@ -46,9 +46,7 @@ async function waitUntilUploadDone(processId: string) {
lokaliseLogger.debug("Checking upload status..."); lokaliseLogger.debug("Checking upload status...");
performance.mark("getProcessStart"); performance.mark("getProcessStart");
const process = await lokaliseApi const process = await lokaliseApi.queuedProcesses().get(processId, {
.queuedProcesses()
.get(processId, {
project_id: projectId, project_id: projectId,
}); });
performance.mark("getProcessEnd"); performance.mark("getProcessEnd");
@@ -213,11 +211,7 @@ export async function download(extractPath: string, all: boolean = false) {
} finally { } finally {
performance.mark("downloadEnd"); performance.mark("downloadEnd");
performance.measure( performance.measure("Download operation", "downloadStart", "downloadEnd");
"Download operation",
"downloadStart",
"downloadEnd"
);
} }
performance.measure("done"); performance.measure("done");