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
43 lines
979 B
TypeScript
43 lines
979 B
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
export default function useRateTitles() {
|
|
const intl = useIntl()
|
|
|
|
const payNow = intl.formatMessage({
|
|
id: "booking.payNow",
|
|
defaultMessage: "Pay now",
|
|
})
|
|
|
|
return {
|
|
change: {
|
|
paymentTerm: payNow,
|
|
title: intl.formatMessage({
|
|
id: "booking.freeRebooking",
|
|
defaultMessage: "Free rebooking",
|
|
}),
|
|
},
|
|
flex: {
|
|
paymentTerm: intl.formatMessage({
|
|
id: "booking.payLater",
|
|
defaultMessage: "Pay later",
|
|
}),
|
|
title: intl.formatMessage({
|
|
id: "booking.freeCancellation",
|
|
defaultMessage: "Free cancellation",
|
|
}),
|
|
},
|
|
save: {
|
|
paymentTerm: payNow,
|
|
title: intl.formatMessage({
|
|
id: "booking.nonRefundable",
|
|
defaultMessage: "Non-refundable",
|
|
}),
|
|
},
|
|
noPriceAvailable: intl.formatMessage({
|
|
id: "booking.noPricesAvailable",
|
|
defaultMessage: "No prices available",
|
|
}),
|
|
}
|
|
}
|