<p><a href="https://github.com/craftcms/cms/issues/5087" rel="nofollow noreferrer">Resolved here</a>.
Does not appear on the doc, although.</p>

CC BY-SA 4.0
2019-12-02T07:04:45.337Z
2019-12-02T07:04:45.337Z
scandella
<p>I need to display booth local and localized entries in the same page.
So I fetch the different localized entries like this :</p>

<pre><code>{% set localeEntry = craft.entries.id(myEntry.id).site('default').one() %} {# get the locale data #}
{% set enEntry = craft.entries.id(myEntry.id).site('en').one() %} {# get the english data #}
</code></pre>

<p>This works perfectly when the page is displaying in the browser, but the variables return empty when the page is displaying in the Craft CP's Live Preview panel.</p>

<live-preview>
Fetch locale entries does not work in Live Preview
# Fetch locale entries does not work in Live Preview

(Asked by: username_0 on 2019-11-24)

I need to display booth local and localized entries in the same page.
So I fetch the different localized entries like this :
{% set localeEntry = craft.entries.id(myEntry.id).site('default').one() %} {# get the locale data #}
{% set enEntry = craft.entries.id(myEntry.id).site('en').one() %} {# get the english data #}

This works perfectly when the page is displaying in the browser, but the variables return empty when the page is displaying in the Craft CP's Live Preview panel.

**Tags:** live-preview

---

## 1 answers

### Answer by username_0 on 2019-12-02. Score: 1 | Accepted answer

[Resolved here](https://github.com/craftcms/cms/issues/5087).
Does not appear on the doc, although.


---

