feat: fetch urls for language switcher from contentstack

This commit is contained in:
Christel Westerberg
2024-05-27 16:46:01 +02:00
parent f4c58ec3ee
commit 28efca98b9
15 changed files with 223 additions and 24 deletions

View File

@@ -245,3 +245,39 @@ query GetLoyaltyPageRefs($locale: String!, $uid: String!) {
}
}
}
query GetDaDeEnUrls($uid: String!) {
de: all_loyalty_page(where: { uid: $uid }, locale: "de") {
items {
url
}
}
en: all_loyalty_page(where: { uid: $uid }, locale: "en") {
items {
url
}
}
da: all_loyalty_page(where: { uid: $uid }, locale: "da") {
items {
url
}
}
}
query GetFiNoSvUrls($uid: String!) {
sv: all_loyalty_page(where: { uid: $uid }, locale: "sv") {
items {
url
}
}
no: all_loyalty_page(where: { uid: $uid }, locale: "no") {
items {
url
}
}
fi: all_loyalty_page(where: { uid: $uid }, locale: "fi") {
items {
url
}
}
}