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:
@@ -21,12 +21,14 @@ export async function getDestinationPageTitle(
|
||||
pageType === "country"
|
||||
? intl.formatMessage(
|
||||
{
|
||||
id: "destination.destinationsInLocation",
|
||||
defaultMessage: "Destinations in {location}",
|
||||
},
|
||||
{ location }
|
||||
)
|
||||
: intl.formatMessage(
|
||||
{
|
||||
id: "destination.hotelsInLocation",
|
||||
defaultMessage: "Hotels in {location}",
|
||||
},
|
||||
{ location }
|
||||
|
||||
@@ -16,6 +16,7 @@ async function getSubpageTitle(
|
||||
if (restaurantSubPage) {
|
||||
const restaurantTitleLong = intl.formatMessage(
|
||||
{
|
||||
id: "metadata.exploreRestaurantAtHotelInDestination",
|
||||
defaultMessage:
|
||||
"Explore {restaurantName} at {hotelName} in {destination}",
|
||||
},
|
||||
@@ -27,6 +28,7 @@ async function getSubpageTitle(
|
||||
)
|
||||
const restaurantTitleShort = intl.formatMessage(
|
||||
{
|
||||
id: "metadata.exploreRestaurantAtHotel",
|
||||
defaultMessage: "Explore {restaurantName} at {hotelName}",
|
||||
},
|
||||
{
|
||||
@@ -49,13 +51,17 @@ async function getSubpageTitle(
|
||||
case additionalHotelData.hotelParking?.nameInUrl:
|
||||
const parkingTitleLong = intl.formatMessage(
|
||||
{
|
||||
id: "metadata.parkingInformationForHotelInDestination",
|
||||
defaultMessage:
|
||||
"Parking information for {hotelName} in {destination}",
|
||||
},
|
||||
{ hotelName, destination }
|
||||
)
|
||||
const parkingTitleShort = intl.formatMessage(
|
||||
{ defaultMessage: "Parking information for {hotelName}" },
|
||||
{
|
||||
id: "metadata.parkingInformationForHotel",
|
||||
defaultMessage: "Parking information for {hotelName}",
|
||||
},
|
||||
{ hotelName }
|
||||
)
|
||||
|
||||
@@ -66,13 +72,17 @@ async function getSubpageTitle(
|
||||
case additionalHotelData.healthAndFitness?.nameInUrl:
|
||||
const wellnessTitleLong = intl.formatMessage(
|
||||
{
|
||||
id: "metadata.gymAndHealthFacilitiesAtHotelInDestination",
|
||||
defaultMessage:
|
||||
"Gym & health facilities at {hotelName} in {destination}",
|
||||
},
|
||||
{ hotelName, destination }
|
||||
)
|
||||
const wellnessTitleShort = intl.formatMessage(
|
||||
{ defaultMessage: "Gym & health facilities at {hotelName}" },
|
||||
{
|
||||
id: "metadata.gymAndHealthFacilitiesAtHotel",
|
||||
defaultMessage: "Gym & health facilities at {hotelName}",
|
||||
},
|
||||
{ hotelName }
|
||||
)
|
||||
|
||||
@@ -83,12 +93,17 @@ async function getSubpageTitle(
|
||||
case additionalHotelData.hotelSpecialNeeds?.nameInUrl:
|
||||
const accessibilityTitleLong = intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "Accessibility at {hotelName} in {destination}",
|
||||
id: "metadata.accessibilityInformationForHotelInDestination",
|
||||
defaultMessage:
|
||||
"Accessibility information for {hotelName} in {destination}",
|
||||
},
|
||||
{ hotelName, destination }
|
||||
)
|
||||
const accessibilityTitleShort = intl.formatMessage(
|
||||
{ defaultMessage: "Accessibility at {hotelName}" },
|
||||
{
|
||||
id: "metadata.accessibilityInformationForHotel",
|
||||
defaultMessage: "Accessibility information for {hotelName}",
|
||||
},
|
||||
{ hotelName }
|
||||
)
|
||||
|
||||
@@ -99,13 +114,17 @@ async function getSubpageTitle(
|
||||
case additionalHotelData.meetingRooms?.nameInUrl:
|
||||
const meetingsTitleLong = intl.formatMessage(
|
||||
{
|
||||
id: "metadata.meetingsAndConferencesAtHotelInDestination",
|
||||
defaultMessage:
|
||||
"Meetings & conferences at {hotelName} in {destination}",
|
||||
},
|
||||
{ hotelName, destination }
|
||||
)
|
||||
const meetingsTitleShort = intl.formatMessage(
|
||||
{ defaultMessage: "Meetings & conferences at {hotelName}" },
|
||||
{
|
||||
id: "metadata.meetingsAndConferencesAtHotel",
|
||||
defaultMessage: "Meetings & conferences at {hotelName}",
|
||||
},
|
||||
{ hotelName }
|
||||
)
|
||||
|
||||
@@ -141,7 +160,10 @@ export async function getHotelPageTitle(data: RawMetadataSchema) {
|
||||
}
|
||||
|
||||
return intl.formatMessage(
|
||||
{ defaultMessage: "Stay at {hotelName} | Hotel in {destination}" },
|
||||
{
|
||||
id: "metadata.stayAtHotelInDestination",
|
||||
defaultMessage: "Stay at {hotelName} | Hotel in {destination}",
|
||||
},
|
||||
{ hotelName, destination }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user