app/views/spree/admin/stock_items/index.html.erb in solidus_backend-2.4.2 vs app/views/spree/admin/stock_items/index.html.erb in solidus_backend-2.5.0.beta1
- old
+ new
@@ -1,18 +1,18 @@
<% if @product %>
<%= render partial: 'spree/admin/shared/product_tabs', locals: { current: 'Stock Management' } %>
<%= render partial: 'spree/shared/error_messages', locals: { target: @product } %>
- <% admin_breadcrumb(Spree.t(:manage_stock)) %>
+ <% admin_breadcrumb(t('spree.manage_stock')) %>
<% else %>
- <% admin_breadcrumb(Spree.t(:stock)) %>
+ <% admin_breadcrumb(t('spree.stock')) %>
<% end %>
<% content_for :table_filter_title do %>
- <%= Spree.t(:search) %>
+ <%= t('spree.search') %>
<% end %>
<% content_for :table_filter do %>
<% form_path = @product ? admin_product_stock_path(product: @product) : admin_stock_items_path %>
<%= render partial: 'spree/admin/shared/variant_search', locals: { form_path: form_path, stock_locations: @stock_locations } %>
@@ -20,8 +20,8 @@
<% if @variants.any? %>
<%= render partial: 'stock_management', locals: { variants: @variants } %>
<% else %>
<div class="fullwidth no-objects-found">
- <%= Spree.t(:no_variants_found_try_again) %>
+ <%= t('spree.no_variants_found_try_again') %>
</div>
<% end %>