Refactor i18n so that all community information is available

This makes it easier to use non-chapter communities on the site in future.
This commit is contained in:
Andy Allan 2022-08-03 10:11:30 +01:00
parent bb7f5ac2c8
commit 83a0ea14f1
4 changed files with 26 additions and 30 deletions

View file

@ -9,7 +9,7 @@
<p><%= t ".local_chapters.list_text" %></p>
<ul>
<% @local_chapters.each do |chapter| %>
<li><a href="<%= chapter.url %>"><%= t "osm_community_index.local_chapter.#{chapter.id}.name" %></a></li>
<li><a href="<%= chapter.url %>"><%= t "osm_community_index.communities.#{chapter.id}.name" %></a></li>
<% end %>
</ul>