Use lazy lookups for site translations

This commit is contained in:
Andy Allan 2018-04-25 16:04:34 +08:00
parent 4a9846b078
commit 8d45f1a5cf
3 changed files with 18 additions and 18 deletions

View file

@ -7,7 +7,7 @@
<%= image_tag "key/#{name}/#{entry['image']}" %>
</td>
<td class="mapkey-table-value">
<%= [*t("site.key.table.entry.#{entry['name']}")].to_sentence %>
<%= [*t(".table.entry.#{entry['name']}")].to_sentence %>
</td>
</tr>
<% end %>