feat: add ability to access localized entries of Hotel pages through language switcher
This commit is contained in:
@@ -5,3 +5,39 @@ query GetHotelPage($locale: String!, $uid: String!) {
|
||||
title
|
||||
}
|
||||
}
|
||||
|
||||
query GetDaDeEnUrlsHotelPage($uid: String!) {
|
||||
de: all_hotel_page(where: { uid: $uid }, locale: "de") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
en: all_hotel_page(where: { uid: $uid }, locale: "en") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
da: all_hotel_page(where: { uid: $uid }, locale: "da") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetFiNoSvUrlsHotelPage($uid: String!) {
|
||||
fi: all_hotel_page(where: { uid: $uid }, locale: "fi") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
no: all_hotel_page(where: { uid: $uid }, locale: "no") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
sv: all_hotel_page(where: { uid: $uid }, locale: "sv") {
|
||||
items {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user