Skip to content

Commit

Permalink
Add locale filtering to queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Jul 1, 2024
1 parent 5b7b5d6 commit da89603
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/api/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const feedbackContactFragment = `
const viewersWithLayersQuery = /* graphql */ `
${feedbackContactFragment}
query viewersWithLayers ($first: IntType, $skip: IntType = 0) {
menus: allMenus(first: $first, skip: $skip) {
query viewersWithLayers ($first: IntType, $skip: IntType = 0, $locale: SiteLocale = nl) {
menus: allMenus(first: $first, skip: $skip, locale: $locale) {
id
name
feedbackContacts {
Expand Down
4 changes: 2 additions & 2 deletions src/api/record-register.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { findGeonetworkInstances } from '../lib/find-geonetwork-instances'
const geonetworkUrl = 'geonetwork/srv'

const viewersWithLayersQuery = /* graphql */ `
query viewersWithLayers ($first: IntType, $skip: IntType = 0) {
menus: allMenus(first: $first, skip: $skip) {
query viewersWithLayers ($first: IntType, $skip: IntType = 0, $locale: SiteLocale = nl) {
menus: allMenus(first: $first, skip: $skip, locale: $locale) {
id
name
geonetwork {
Expand Down
4 changes: 2 additions & 2 deletions src/api/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { withServerDefaults } from '../lib/with-server-defaults'
import { buildChildrenTree } from '../lib/build-children-tree'

const datocmsQuery = /* graphql */ `
query Layers ($first: IntType, $skip: IntType = 0) {
menus: allMenus(first: $first, skip: $skip) {
query Layers ($first: IntType, $skip: IntType = 0, $locale: SiteLocale = nl) {
menus: allMenus(first: $first, skip: $skip, locale: $locale) {
id
name
children: layers {
Expand Down
4 changes: 2 additions & 2 deletions src/api/sync-layer-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const mailjet = new Mailjet({
})

const viewersWithLayersQuery = /* graphql */ `
query viewersWithLayers ($first: IntType, $skip: IntType = 0) {
menus: allMenus(first: $first, skip: $skip) {
query viewersWithLayers ($first: IntType, $skip: IntType = 0, $locale: SiteLocale = nl) {
menus: allMenus(first: $first, skip: $skip, locale: $locale) {
id
geonetwork {
baseUrl
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/report-dead-layer-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const mailjet = new Mailjet({
})

const viewersWithLayersQuery = /* graphql */ `
query viewersWithLayers ($first: IntType, $skip: IntType = 0) {
menus: allMenus(first: $first, skip: $skip) {
query viewersWithLayers ($first: IntType, $skip: IntType = 0, $locale: SiteLocale = nl) {
menus: allMenus(first: $first, skip: $skip, locale: $locale) {
id
name
deadLinksReportContacts {
Expand Down

0 comments on commit da89603

Please sign in to comment.