Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Admin: fixed translations to match existing translations in SpreeI18n

Damian Legawiec64b5c0ae0ebb
diff --git a/admin/app/views/spree/admin/oauth_applications/new.html.erb b/admin/app/views/spree/admin/oauth_applications/new.html.erb
index 0abdf22d5f..659b796814 100644
--- a/admin/app/views/spree/admin/oauth_applications/new.html.erb
+++ b/admin/app/views/spree/admin/oauth_applications/new.html.erb
@@ -1,10 +1,10 @@
<%= content_for :title do %>
- <%= Spree.t('admin.oauth_applications.new') %>
+ <%= Spree.t(:new_oauth_application) %>
<% end %>
<% content_for :page_title do %>
<%= page_header_back_button spree.admin_oauth_applications_url %>
- <%= Spree.t('admin.oauth_applications.new') %>
+ <%= Spree.t(:new_oauth_application) %>
<% end %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @oauth_application } %>
diff --git a/admin/app/views/spree/admin/stock_locations/index.html.erb b/admin/app/views/spree/admin/stock_locations/index.html.erb
index 49fa73f1b7..89c9addde7 100644
--- a/admin/app/views/spree/admin/stock_locations/index.html.erb
+++ b/admin/app/views/spree/admin/stock_locations/index.html.erb
@@ -2,7 +2,7 @@
<%= Spree.t(:stock_locations) %>
<% end %>
<% content_for :page_actions do %>
- <%= button_link_to Spree.t("admin.stock_locations.new"), new_object_url, class: "btn-primary", icon: 'plus' %>
+ <%= button_link_to Spree.t(:new_stock_location), new_object_url, class: "btn-primary", icon: 'plus' %>
<% end if can? :create, Spree::StockLocation %>
<% if @stock_locations.any? %>
<div class="table-responsive card-lg p-0">
diff --git a/admin/app/views/spree/admin/stock_locations/new.html.erb b/admin/app/views/spree/admin/stock_locations/new.html.erb
index 47ff54d542..164a673beb 100644
--- a/admin/app/views/spree/admin/stock_locations/new.html.erb
+++ b/admin/app/views/spree/admin/stock_locations/new.html.erb
@@ -1,6 +1,6 @@
<% content_for :page_title do %>
<%= page_header_back_button spree.admin_stock_locations_path %>
- <%= Spree.t('admin.stock_locations.new') %>
+ <%= Spree.t(:new_stock_location) %>
<% end %>
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @stock_location } %>
<%= form_for [:admin, @stock_location] do |f| %>