Multi-lingual site navigation made of singles, channels and structure Does anyone have any examples of how they've put together the main site navigation for a multi-lingual site set-up made up of singles, channels and structure?

At the moment I've just hard-coded the nav and done and if else on the locale ID but would like to know if there's a more flexible, future-proof method.
I have one main structure "pages" and got rid of all single sections. I also gave each channel's index page an entry in the structure (good for URL translation). Then I added some entry types to it (you can also link templates to them) and created my site navigation like in my example code below.

This allows you to translate the slug of the index pages in the CP and you have access to localized URL (page.getUrl) and page title variables (page.title) in your nav template.

Only one level of hierarchy I need. If you have to go deeper, the nav tag's waiting for you! ;)

{# Get top-level entries in pages structure #}
{% set pages = craft.entries.section('pages').level(1) %}

&lt;nav class="navigation" role="navigation"&gt;
    &lt;ul&gt;

        {# Loop through entries (= pages) and list the links #}
        {% for page in pages %}
            &lt;li class="navigation-item"&gt;
                &lt;a href="{{ page.getUrl }}"&gt;{{ page.title }}&lt;/a&gt;
            &lt;/li&gt;
        {% endfor %}

        {# Include links to switch locales #}
        &lt;li class="navigation-item"&gt;
            {% include '_includes/language_switch.html' %}
        &lt;/li&gt;

    &lt;/ul&gt;
&lt;/nav&gt;