i18n-ize app/views/campaigns/supporters/_totals.html.erb
This commit is contained in:
parent
e4e162c4ab
commit
fca3c7cd6a
2 changed files with 45 additions and 5 deletions
|
@ -2,11 +2,11 @@
|
|||
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
|
||||
<table class='table--plaid u-marginBottom--20'>
|
||||
<thead>
|
||||
<th>Supporters</th>
|
||||
<th>Total</th>
|
||||
<th>One time</th>
|
||||
<th>Recurring</th>
|
||||
<th>Offsite</th>
|
||||
<th><%= t('campaigns.dashboards.supporters') %></th>
|
||||
<th><%= t('campaigns.dashboards.total') %></th>
|
||||
<th><%= t('campaigns.dashboards.one_time') %></th>
|
||||
<th><%= t('campaigns.dashboards.recurring') %></th>
|
||||
<th><%= t('campaigns.dashboards.offsite') %></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
|
40
config/locales/campaigns.dashboard.en.yml
Normal file
40
config/locales/campaigns.dashboard.en.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
# License: CC0-1.0
|
||||
# Files in the config/locales directory are used for internationalization
|
||||
# and are automatically loaded by Rails. If you want to use locales other
|
||||
# than English, add the necessary files in this directory.
|
||||
#
|
||||
# To use the locales, use `I18n.t`:
|
||||
#
|
||||
# I18n.t 'hello'
|
||||
#
|
||||
# In views, this is aliased to just `t`:
|
||||
#
|
||||
# <%= t('hello') %>
|
||||
#
|
||||
# To use a different locale, set it with `I18n.locale`:
|
||||
#
|
||||
# I18n.locale = :es
|
||||
#
|
||||
# This would use the information in config/locales/es.yml.
|
||||
#
|
||||
# The following keys must be escaped otherwise they will not be retrieved by
|
||||
# the default I18n backend:
|
||||
#
|
||||
# true, false, on, off, yes, no
|
||||
#
|
||||
# Instead, surround them with single quotes.
|
||||
#
|
||||
# en:
|
||||
# 'true': 'foo'
|
||||
#
|
||||
# To learn more, please read the Rails Internationalization guide
|
||||
# available at https://guides.rubyonrails.org/i18n.html.
|
||||
|
||||
en:
|
||||
campaigns:
|
||||
dashboard:
|
||||
supporters: supporters
|
||||
total: Total
|
||||
one_time: One time
|
||||
recurring: Recurring
|
||||
offsite: Offsite
|
Loading…
Reference in a new issue