i18n-ize app/views/campaigns/supporters/_totals.html.erb

This commit is contained in:
Eric Schultz 2021-04-12 13:30:53 -05:00 committed by Eric Schultz
parent e4e162c4ab
commit fca3c7cd6a
2 changed files with 45 additions and 5 deletions

View file

@ -2,11 +2,11 @@
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%> # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<table class='table--plaid u-marginBottom--20'> <table class='table--plaid u-marginBottom--20'>
<thead> <thead>
<th>Supporters</th> <th><%= t('campaigns.dashboards.supporters') %></th>
<th>Total</th> <th><%= t('campaigns.dashboards.total') %></th>
<th>One time</th> <th><%= t('campaigns.dashboards.one_time') %></th>
<th>Recurring</th> <th><%= t('campaigns.dashboards.recurring') %></th>
<th>Offsite</th> <th><%= t('campaigns.dashboards.offsite') %></th>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>

View 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