Skip to content

Commit 54ac8b9

Browse files
fix(next): passes locale through requests in live preview edit view (#9298)
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com>
1 parent 0a6f530 commit 54ac8b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/next/src/views/LivePreview/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const LivePreviewView: PayloadServerReactComponent<EditViewComponent> = a
3838
depth: 0,
3939
draft: true,
4040
fallbackLocale: false,
41+
locale: locale?.code,
4142
})
4243
}
4344

@@ -47,6 +48,7 @@ export const LivePreviewView: PayloadServerReactComponent<EditViewComponent> = a
4748
depth: 0,
4849
draft: true,
4950
fallbackLocale: false,
51+
locale: locale?.code,
5052
})
5153
}
5254
} catch (error) {

0 commit comments

Comments
 (0)