Output Locale URLs in hreflang Just adding hreflang tags to the head on all pages of my multi-locale site...

{% for locale in craft.i18n.getSiteLocales() %}
    &lt;link rel="alternate" href="{{ entry.url }}" hreflang="{{ locale }}"&gt;
{% endfor %}


Nearly there, but obviously this outputs my list of locales with the entry url for the current locale only. What I need is to output the entry url for each locale. Anyone done this before?
Have you tried using {{ craft.entries.id(entry.id).locale(locale.id).first().url }} inside the for loop you have made?