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.

Fixed `display_on_options` translations

Damian Legawiecad8959342a5f
diff --git a/admin/app/helpers/spree/admin/base_helper.rb b/admin/app/helpers/spree/admin/base_helper.rb
index bd61781844..09c3aa2804 100644
--- a/admin/app/helpers/spree/admin/base_helper.rb
+++ b/admin/app/helpers/spree/admin/base_helper.rb
@@ -29,7 +29,7 @@ module Spree
def display_on_options
Spree::DisplayOn::DISPLAY.map do |display_on|
- [Spree.t("display_on_options.#{display_on}"), display_on]
+ [Spree.t("admin.display_on_options.#{display_on}"), display_on]
end
end
diff --git a/admin/config/locales/en.yml b/admin/config/locales/en.yml
index 48b31e6dae..cce9fcdfef 100644
--- a/admin/config/locales/en.yml
+++ b/admin/config/locales/en.yml
@@ -37,6 +37,10 @@ en:
no_digital_assets_added: No digital assets.
delete_file_confirmation: "Are you sure you want to delete: %{filename}"
upload: Upload
+ display_on_options:
+ back_end: Only on admin panel
+ front_end: Only on storefront
+ both: On both admin panel & storefront
export_only_filtered_records: Export only filtered records, matching the search criteria
export_all: Export all records (can be slow for large datasets)
export_created: Your export was started. You will receive an email with a download link when it is ready!
@@ -264,10 +268,6 @@ en:
wished_items: Wished Items
wishlists: Wishlists
zones: Zones
- display_on:
- both: All
- front_end: Storefront
- back_end: Admin Panel
product:
all: All
active: Active