forked from shibao/cannery
gettext monetary amounts
This commit is contained in:
@ -38,7 +38,7 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
||||
|
||||
<%= if @ammo_group.price_paid do %>
|
||||
<span class="rounded-lg title text-lg">
|
||||
<%= gettext("Price paid:") %> $ <%= @ammo_group.price_paid |> :erlang.float_to_binary(decimals: 2) %>
|
||||
<%= gettext("Price paid:") %> <%= gettext("$%{amount}", amount: @ammo_group.price_paid |> :erlang.float_to_binary(decimals: 2)) %>
|
||||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user