<p>In Craft 3, you can't really have locales. If in Craft 2 you had multiple locales, that should have been automatically migrated to multiple sites (as now the site is always single locale)</p>

<p>Having said that, you now need to use <code>site</code> or <code>siteId</code> parameter <a href="https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#site" rel="nofollow noreferrer">https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#site</a></p>

CC BY-SA 4.0
2019-03-15T14:24:34.227Z
2019-03-15T14:24:34.227Z
Yuri Salimovskiy
<p>In Craft 2 you used to be able to do something like <code>{% set entries = craft.entries.section('something').locale('de') %}</code> but <code>.locale()</code> has been removed and there's nothing similar <a href="https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html" rel="nofollow noreferrer">in the docs</a> that I see. </p>

<p>I'm aware that the locale automatically gets included based on the url, and I'm aware that "Locales" have been replaced by "Sites", but I want to force a query of entries from a specific locale on the one and only site I have regardless of what's in the URL. How can this be done?</p>

CC BY-SA 4.0
2019-03-14T18:23:54.127Z
When you have only one single site then what's the purpose of specifying the site id? Locals have been replaced by sites.
Robin Schambach
<templating><craft3><localization><query>
How to query entries written in a specific locale? (Craft 3)
# How to query entries written in a specific locale? (Craft 3)

(Asked by: username_0 on 2019-03-14)

In Craft 2 you used to be able to do something like `{% set entries = craft.entries.section('something').locale('de') %}` but `.locale()` has been removed and there's nothing similar [in the docs](https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html) that I see.

I'm aware that the locale automatically gets included based on the url, and I'm aware that "Locales" have been replaced by "Sites", but I want to force a query of entries from a specific locale on the one and only site I have regardless of what's in the URL. How can this be done?

**Tags:** templating, craft3, localization, query

> **Comments:**
> **username_1**: When you have only one single site then what's the purpose of specifying the site id? Locals have been replaced by sites.  

---

## 1 answers

### Answer by username_2 on 2019-03-15. Score: 4 | Accepted answer

In Craft 3, you can't really have locales. If in Craft 2 you had multiple locales, that should have been automatically migrated to multiple sites (as now the site is always single locale)

Having said that, you now need to use `site` or `siteId` parameter <https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#site>


---

