From 6b6df2f87a9f56410d71337179b20a55ce544dcc Mon Sep 17 00:00:00 2001 From: Jan Lucki Date: Wed, 7 Sep 2022 14:12:47 +0100 Subject: [PATCH] get locale dynamically --- client/themes/default/components/page.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index 2d469288..0bd23746 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -623,7 +623,7 @@ export default { query: query, variables: { path: currentPagePath, - locale: 'en' + locale: this.locale } }).then(resp => { const pageIds = resp.data.pages.tree.filter(item => item.path === currentPagePath) @@ -638,7 +638,7 @@ export default { getChildPages (currentPageID) { const variables = { parent: currentPageID, - locale: 'en' + locale: this.locale } const query = gql` query Page($locale: String!, $parent: Int!) {