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.

Nicer name for default stock location (#12056)

Damian Legawiec4e3a3680dc80
diff --git a/core/app/services/spree/seeds/stock_locations.rb b/core/app/services/spree/seeds/stock_locations.rb
index 6b4109e603..41a17b49a7 100644
--- a/core/app/services/spree/seeds/stock_locations.rb
+++ b/core/app/services/spree/seeds/stock_locations.rb
@@ -6,7 +6,7 @@ module Spree
def call
country = Spree::Store.default.default_country
Spree::StockLocation.find_or_create_by!(
- name: 'default',
+ name: Spree.t(:default_stock_location_name),
propagate_all_variants: false,
country: country,
active: true,
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index df1032cf75..5c123afe7f 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -1580,6 +1580,7 @@ en:
states_required: States Required
status: Status
stock: Stock
+ default_stock_location_name: Shop location
stock_location: Stock Location
stock_location_info: Stock location info
stock_locations: Stock Locations