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.

Add hits to reports that they are scoped by store.

Matthew Kennedyfdab50c1e1f7
diff --git a/backend/app/views/spree/admin/reports/index.html.erb b/backend/app/views/spree/admin/reports/index.html.erb
index 40b4859723..6cd18a07a6 100644
--- a/backend/app/views/spree/admin/reports/index.html.erb
+++ b/backend/app/views/spree/admin/reports/index.html.erb
@@ -1,5 +1,5 @@
<% content_for :page_title do %>
- <%= Spree.t(:reports) %>
+ <%= Spree.t(:reports) %> <%= Spree.t('admin.reports.for', store_name: current_store.unique_name) %>
<% end %>
<div class="table-responsive">
<table class="table">
diff --git a/backend/app/views/spree/admin/reports/sales_total.html.erb b/backend/app/views/spree/admin/reports/sales_total.html.erb
index ece7b9ecd2..6935080876 100644
--- a/backend/app/views/spree/admin/reports/sales_total.html.erb
+++ b/backend/app/views/spree/admin/reports/sales_total.html.erb
@@ -1,6 +1,6 @@
<% content_for :page_title do %>
<%= link_to Spree.t(:reports), spree.admin_reports_url %> /
- <%= Spree.t(:sales_totals) %>
+ <%= Spree.t(:sales_totals) %> <%= Spree.t('admin.reports.for', store_name: current_store.unique_name) %>
<% end %>
<div class="card bg-light mb-3">
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index dfea308670..c6dca4d2f8 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -580,6 +580,8 @@ en:
resend: Resend
orders:
cart: Cart
+ reports:
+ for: For %{store_name}
return_authorization:
product: Product
user: