Skip to content

Commit

Permalink
close #2150 remove nested translation for spree.currency (#2151)
Browse files Browse the repository at this point in the history
  • Loading branch information
theachoem authored Dec 13, 2024
1 parent 8af9581 commit f17c557
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/views/spree/billing/shared/_pop_up_confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
<div class="form-group d-flex justify-content-between">
<%= I18n.t('spree.billing.amount_to_be_paid') %>
<div class="row col-7 d-flex justify-content-between">
<%= I18n.t('spree.currency.riel') %>
<%= I18n.t('currency.riel') %>
<%= text_field :amount_to_be_paid, '', placeholder: order.outstanding_balance.to_s, class: 'form-control', id: "#{payment.id}_amount_to_be_paid", style: 'width: 85%; margin-right: 5%;', disabled: true %>
</div>
</div>
<%= I18n.t('spree.billing.payment_amount_received') %><br><br>
<div class="d-flex justify-content-between">
<%= Spree.t(:dollar) %>
<div id="payment-data" data-payment-id="<%= payment.id %>" class="form-group row col-7 d-flex justify-content-between">
<%= I18n.t('spree.currency.dollar') %>
<%= I18n.t('currency.dollar') %>
<%= text_field :en_currency, '', class: 'form-control', style: 'width: 85%; margin-right: 5%;', id: "#{payment.id}_en_currency" %>
</div>
</div>
<div class="form-group d-flex justify-content-between">
<%= Spree.t(:riel) %>
<div id="payment-data" data-payment-id="<%= payment.id %>" class="row col-7 d-flex justify-content-between">
<%= I18n.t('spree.currency.riel') %>
<%= I18n.t('currency.riel') %>
<%= text_field :kh_currency, '', class: 'form-control', style: 'width: 85%; margin-right: 5%;', id: "#{payment.id}_kh_currency" %>
</div>
</div>
<div class="form-group d-flex justify-content-between">
<%= Spree.t(:total) %>
<div class="row col-7 d-flex justify-content-between">
<%= I18n.t('spree.currency.riel') %>
<%= I18n.t('currency.riel') %>
<%= f.text_field :amount, class: 'form-control', style: 'width: 85%; margin-right: 5%;', id: "#{payment.id}_total", disabled: true %>
</div>
</div>
<div class="form-group d-flex justify-content-between">
<%= I18n.t('spree.billing.amount_remaining') %>
<div class="row col-7 d-flex justify-content-between">
<%= I18n.t('spree.currency.riel') %>
<%= I18n.t('currency.riel') %>
<%= f.text_field :amount, class: 'form-control', style: 'width: 85%; margin-right: 5%;', id: "#{payment.id}_amount_remaining", disabled: true %>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ en:
user:
invalid_password: "Invalid Password"

currency:
dollar: "$"
riel: ""

spree:
currency:
dollar: "$"
riel: ""
cancel: "Cancel"
confirm: "Confirm"
en: "English"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/km.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ km:
user:
invalid_password: "Current password is not valid"

currency:
dollar: "$"
riel: ""

spree:
km: "ភាសារខ្មែរ"
date_of_birth: "ថ្ងៃខែឆ្នាំកំណើត"
Expand Down

0 comments on commit f17c557

Please sign in to comment.