Show a list of recently used tags only from the current locale I'm having trouble outputting a list of tags that only includes tags from the current locale.

Here's the setup:


I have a site with two locales: english and spanish
I have a section with handle newsAndEvents
I have a tag field with handle newsTags on entries in that section that is set to translatable to allow my clients to assign locale-specific tags to the entries
I have an entry in that section created with a published version for each of my locales. In the english version, I've added a tag "Turtles" to the entry. In the spanish version, I've added a tag "Tortugas" to the entry.
On the landing page of my news section, I am displaying a list of recent tags in a sidebar. Here's the code I'm using to do it:

{# grab the entries in the specific locale #}
{% set entries = craft.entries.find({section: 'newsAndEvents', locale: craft.locale}) %}

{# Grab the related tags for those entries #}
{% set tags = craft.tags.relatedTo(entries) %}

{# Build the list #}
{% if tags | length %}
  &lt;ul class="tag-list"&gt;
  {% for tag in tags %}
    &lt;li&gt;&lt;a class="tag" href="#"&gt;{{ tag.name }}&lt;/a&gt;&lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
{% endif %}

The problem is, when I'm looking at the english version of my landing page, I get both "Tortugas" and "Turtles" in the list output by the code above. What I want is to only see the tags on english versions entries on the english landing page; and the tags on spanish versions of entries on the spanish landing page.


Some additional info:


If an entry has only one published version, english for example, any tags I assign to that version do not appear on the spanish landing page, as would be expected.
On my entry detail pages, I'm using similar code to generate a list of tags assigned to the current entry, and the output is what I expect: english versions only show tags assigned to english versions, not to both english and spanish like on the landing page.


What am I missing?
Brandon at P&amp;T was able to fill in the piece I was missing. He said:

To only get tags that were related from a specific locale, you just need to specify that in your relatedTo param:

    {% set tags = craft.tags.relatedTo({
      sourceElement: entries,
      sourceLocale: craft.locale
    }) %}


With the addition of order('dateCreated desc').limit(10) to put some additional constraints on what I was getting back, this solved it for me.