Is there a way to get the current locale for the page you're editing in preview? #173
Answered
by
jmikrut
richardvanbergen
asked this question in
Q&A
-
Hey guys, pretty simple question I need to know which locale the user is currently editing when creating the preview button. Just wondering if there's an officially supported way of doing this? |
Beta Was this translation helpful? Give feedback.
Answered by
jmikrut
May 10, 2021
Replies: 1 comment 1 reply
-
Hey @richardvanbergen — we can pass in the Good call! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
richardvanbergen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @richardvanbergen — we can pass in the
locale
to that function for sure. Give us a bit today and we'll deploy a new version with locale added to thegeneratePreviewURL
function.Good call!