Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 2a45b01

Browse files
committed
Fix languages
1 parent 2d21600 commit 2a45b01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

helpers/common-page.helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function loadMenuFromApi(context) {
5353
}
5454

5555
return context.app.$storyapi
56-
.get(`cdn/stories/${context.localePath('menu')}`, {
56+
.get(`cdn/stories/menu?language=${context.i18n.locale}`, {
5757
version: 'published'
5858
})
5959
.then((response) => {
@@ -92,7 +92,7 @@ export function loadSocialFromApi(context) {
9292
}
9393

9494
return context.app.$storyapi
95-
.get(`cdn/stories/${context.localePath('social')}`, {
95+
.get(`cdn/stories/social?language=${context.i18n.locale}`, {
9696
version: 'published'
9797
})
9898
.then((response) => {
@@ -129,7 +129,7 @@ export function loadDonationsFromApi(context) {
129129
}
130130

131131
return context.app.$storyapi
132-
.get(`cdn/stories/${context.localePath('donations')}`, {
132+
.get(`cdn/stories/donations?language=${context.i18n.locale}`, {
133133
version: 'published'
134134
})
135135
.then((response) => {
@@ -171,7 +171,7 @@ export function loadPageContent(context, path) {
171171

172172
return loadPageContentFromApi(
173173
context,
174-
`cdn/stories/${context.localePath(url)}`
174+
`cdn/stories/${url}?language=${context.i18n.locale}`
175175
);
176176
});
177177
}

0 commit comments

Comments
 (0)