Contentful logo

Contentful Community

How to preview in different locale

#1

I’d like to set up content preview that passes along the current locale to the preview. I was able to use the token {entry.sys.id} in the url to find the current item’s ID and pass onto the preview link. I wonder why {entry.sys.locale} resulted in sys.locale_%20NOT_FOUND?

I have queried on preview.contentful.com with this ID param, and sys.locale is a valid field.
“sys”: {
“space”: {
“sys”: {
“type”: “Link”,
“linkType”: “Space”,
“id”: “"
}
},
“type”: “Entry”,
“id”: "
**********”,
“contentType”: {
“sys”: {
“type”: “Link”,
“linkType”: “ContentType”,
“id”: “page”
}
},
“revision”: 14,
“createdAt”: “2019-04-16T17:52:50.487Z”,
“updatedAt”: “2019-04-26T18:13:40.001Z”,
“environment”: {
“sys”: {
“id”: “test”,
“type”: “Link”,
“linkType”: “Environment”
}
},
“locale”: “en-US”
},