Merged in fix/use-old-loacalize-keys (pull request #3534)
fix(LOY-391): changed back localize keys to the old ones to make less work for content * fix(LOY-391): changed back localize keys to the old ones to make less work for content Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -104,7 +104,7 @@ function getDescription(transaction: Transaction, intl: IntlShape) {
|
||||
|
||||
if (isNonTransactional && transaction.attributes.nights === 0) {
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.pointsActivity",
|
||||
id: "earnAndBurn.journeyTable.pointsActivity",
|
||||
defaultMessage: "Point activity",
|
||||
})
|
||||
}
|
||||
@@ -113,7 +113,7 @@ function getDescription(transaction: Transaction, intl: IntlShape) {
|
||||
if (hotelInformation?.name) {
|
||||
return intl.formatMessage(
|
||||
{
|
||||
id: "myPoints.pointTransactions.stayAt",
|
||||
id: "earnAndBurn.journeyTable.stayAt",
|
||||
defaultMessage: "Stay at {hotelName}",
|
||||
},
|
||||
{ hotelName: hotelInformation.name }
|
||||
@@ -124,53 +124,53 @@ function getDescription(transaction: Transaction, intl: IntlShape) {
|
||||
case Transactions.rewardType.stayAdj:
|
||||
if (transaction.attributes.hotelOperaId === "ORS") {
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.formerScandicHotel",
|
||||
id: "earnAndBurn.journeyTable.formerScandicHotel",
|
||||
defaultMessage: "Former Scandic Hotel",
|
||||
})
|
||||
}
|
||||
if (isBalfwd) {
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.pointsEarnedPriorMay2021",
|
||||
id: "earnAndBurn.journeyTable.pointsEarnedPriorMay2021",
|
||||
defaultMessage: "Points earned prior to May 1, 2021",
|
||||
})
|
||||
}
|
||||
case Transactions.rewardType.redgift:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.redGift",
|
||||
id: "earnAndBurn.journeyTable.redGift",
|
||||
defaultMessage: "Reward Gift",
|
||||
})
|
||||
case Transactions.rewardType.rewardNight:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.rewardNight",
|
||||
id: "earnAndBurn.journeyTable.rewardNight",
|
||||
defaultMessage: "Reward Night",
|
||||
})
|
||||
case Transactions.rewardType.ancillary:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.extrasToBooking",
|
||||
id: "earnAndBurn.journeyTable.extrasToBooking",
|
||||
defaultMessage: "Extras to your booking",
|
||||
})
|
||||
|
||||
case Transactions.rewardType.enrollment:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.signUpBonus",
|
||||
id: "earnAndBurn.journeyTable.signUpBonus",
|
||||
defaultMessage: "Sign up bonus",
|
||||
})
|
||||
|
||||
case Transactions.rewardType.mastercard_points:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.scandicFriendsMastercard",
|
||||
id: "earnAndBurn.journeyTable.scandicFriendsMastercard",
|
||||
defaultMessage: "Scandic Friends Mastercard",
|
||||
})
|
||||
|
||||
case Transactions.rewardType.tui_points:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.tuiPoints",
|
||||
id: "earnAndBurn.journeyTable.tuiPoints",
|
||||
defaultMessage: "TUI Points",
|
||||
})
|
||||
|
||||
case Transactions.rewardType.pointShop:
|
||||
return intl.formatMessage({
|
||||
id: "myPoints.pointTransactions.pointShop",
|
||||
id: "earnAndBurn.journeyTable.pointShop",
|
||||
defaultMessage: "Scandic Friends Point Shop",
|
||||
})
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user