This repository was archived by the owner on Dec 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export function loadMenuFromApi(context) {
53
53
}
54
54
55
55
return context . app . $storyapi
56
- . get ( `cdn/stories/${ context . localePath ( 'menu' ) } ` , {
56
+ . get ( `cdn/stories/menu?language= ${ context . i18n . locale } ` , {
57
57
version : 'published'
58
58
} )
59
59
. then ( ( response ) => {
@@ -92,7 +92,7 @@ export function loadSocialFromApi(context) {
92
92
}
93
93
94
94
return context . app . $storyapi
95
- . get ( `cdn/stories/${ context . localePath ( 'social' ) } ` , {
95
+ . get ( `cdn/stories/social?language= ${ context . i18n . locale } ` , {
96
96
version : 'published'
97
97
} )
98
98
. then ( ( response ) => {
@@ -129,7 +129,7 @@ export function loadDonationsFromApi(context) {
129
129
}
130
130
131
131
return context . app . $storyapi
132
- . get ( `cdn/stories/${ context . localePath ( 'donations' ) } ` , {
132
+ . get ( `cdn/stories/donations?language= ${ context . i18n . locale } ` , {
133
133
version : 'published'
134
134
} )
135
135
. then ( ( response ) => {
@@ -171,7 +171,7 @@ export function loadPageContent(context, path) {
171
171
172
172
return loadPageContentFromApi (
173
173
context ,
174
- `cdn/stories/${ context . localePath ( url ) } `
174
+ `cdn/stories/${ url } ?language= ${ context . i18n . locale } `
175
175
) ;
176
176
} ) ;
177
177
}
You can’t perform that action at this time.
0 commit comments