File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ const StepSiteGenEditor = () => {
37
37
const handleSitemapPagesGeneration = async ( ) => {
38
38
if ( false === currentData ?. sitegen ?. sitemapPagesGenerated ) {
39
39
const sitemapPagesPublished = await publishSitemapPages (
40
- currentData . sitegen . siteDetails . prompt
40
+ currentData . sitegen . siteDetails . prompt ,
41
+ currentData . sitegen . siteDetails . locale
41
42
) ;
42
43
if ( ! sitemapPagesPublished . error ) {
43
44
currentData . sitegen . sitemapPagesGenerated = true ;
Original file line number Diff line number Diff line change @@ -82,13 +82,14 @@ export async function getCustomizeSidebarData() {
82
82
) ;
83
83
}
84
84
85
- export async function publishSitemapPages ( siteDescription ) {
85
+ export async function publishSitemapPages ( siteDescription , locale ) {
86
86
return await resolve (
87
87
apiFetch ( {
88
88
url : onboardingRestURL ( 'sitegen/pages/sitemap' ) ,
89
89
method : 'POST' ,
90
90
data : {
91
91
site_description : siteDescription ,
92
+ locale : locale
92
93
} ,
93
94
} ) . then ( )
94
95
) ;
You can’t perform that action at this time.
0 commit comments