Add gettext to homepage banner labels

pull/346/head
Ryan Arthur 6 years ago committed by jimmay5469
parent 2c760630fe
commit 8089c18908
  1. 10
      apps/explorer_web/lib/explorer_web/templates/chain/show.html.eex

@ -7,7 +7,7 @@
<div class="dashboard-banner-chart-legend"> <div class="dashboard-banner-chart-legend">
<div class="dashboard-banner-chart-legend-item"> <div class="dashboard-banner-chart-legend-item">
<span class="dashboard-banner-chart-legend-label"> <span class="dashboard-banner-chart-legend-label">
Price <%= gettext "Price" %>
</span> </span>
<span class="dashboard-banner-chart-legend-value"> <span class="dashboard-banner-chart-legend-value">
<%= format_exchange_rate(@exchange_rate) %> <%= format_exchange_rate(@exchange_rate) %>
@ -15,7 +15,7 @@
</div> </div>
<div class="dashboard-banner-chart-legend-item"> <div class="dashboard-banner-chart-legend-item">
<span class="dashboard-banner-chart-legend-label"> <span class="dashboard-banner-chart-legend-label">
Market cap <%= gettext "Market Cap" %>
</span> </span>
<span class="dashboard-banner-chart-legend-value"> <span class="dashboard-banner-chart-legend-value">
<%= format_market_cap(@exchange_rate) %> <%= format_market_cap(@exchange_rate) %>
@ -25,7 +25,7 @@
<div class="dashboard-banner-network-stats"> <div class="dashboard-banner-network-stats">
<div class="dashboard-banner-network-stats-item"> <div class="dashboard-banner-network-stats-item">
<span class="dashboard-banner-network-stats-label"> <span class="dashboard-banner-network-stats-label">
Block time <%= gettext "Average block time" %>
</span> </span>
<span class="dashboard-banner-network-stats-value"> <span class="dashboard-banner-network-stats-value">
<%= @chain.average_time |> Timex.format_duration(:humanized) %> <%= @chain.average_time |> Timex.format_duration(:humanized) %>
@ -33,7 +33,7 @@
</div> </div>
<div class="dashboard-banner-network-stats-item"> <div class="dashboard-banner-network-stats-item">
<span class="dashboard-banner-network-stats-label"> <span class="dashboard-banner-network-stats-label">
Total transactions <%= gettext "Total transactions" %>
</span> </span>
<span class="dashboard-banner-network-stats-value"> <span class="dashboard-banner-network-stats-value">
12,106,123 12,106,123
@ -41,7 +41,7 @@
</div> </div>
<div class="dashboard-banner-network-stats-item"> <div class="dashboard-banner-network-stats-item">
<span class="dashboard-banner-network-stats-label"> <span class="dashboard-banner-network-stats-label">
Wallet addresses <%= gettext "Wallet addresses" %>
</span> </span>
<span class="dashboard-banner-network-stats-value"> <span class="dashboard-banner-network-stats-value">
1,400,500 1,400,500

Loading…
Cancel
Save