Display entries including all locales for XML sitemap I’m trying to build an XML sitemap that contains all entries including those in a different locale. I thought the localeEnabled(false) would allow entries for all locales to be displayed, however, the following doesn’t seem to work:

{% set pages = craft.entries.section('pages').status('live').localeEnabled(false) %}


If is assign a locale:

{% set pages = craft.entries.section('pages').status('live').locale('de') %}


then the entry is displayed.

I have tried using .locale(null) and .localeEnabled(null) without success.

Any ideas?
Not sure, but I think the only way is to query for each locale and merge.

{% set siteLocales = craft.i18n.getSiteLocales %}
{% set pages = [] %}
{% for locale in siteLocales %}
    {% set localePages = craft.entries.section('pages').locale(locale.getId).find() %}
    {% set pages = pages|merge(localePages) %}
{% endfor %}

{% for page in pages %}
    {{ page.title}}
{% endfor %}