Skip to content

Commit

Permalink
add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 10, 2023
1 parent c6d9222 commit 90bd304
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/application/_add_cart.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<%= f.hidden_field :scene_id, value: params[:scene_id] %>
<%= f.hidden_field :station_id, value: params[:station_id] %>
<%= f.hidden_field :desk_id, value: params[:desk_id] %>
<%= button_tag class: 'button is-small is-danger' do %>
<button type="submit" class="button is-small is-danger">
<i class="fa-solid fa-cart-plus"></i>
<span class="pl-1"><%= t(".#{item_con.tr('/', '.')}.create.title") %></span>
<% end %>
</button>
<% end %>
4 changes: 4 additions & 0 deletions config/locales/en.controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@ en:
title: Add To Cart
order_edit:
title: Edit
agent:
items:
create:
title: Proxy Add

0 comments on commit 90bd304

Please sign in to comment.