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.

Use translation.

Matthew Kennedy02b2652dab71
diff --git a/backend/app/assets/javascripts/spree/backend/spree-select2.js b/backend/app/assets/javascripts/spree/backend/spree-select2.js
index af6e6d3292..f95c7558fb 100644
--- a/backend/app/assets/javascripts/spree/backend/spree-select2.js
+++ b/backend/app/assets/javascripts/spree/backend/spree-select2.js
@@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Inititate Select2 on any select element with the class .select2
$('select.select2').select2({
allowClear: true,
- placeholder: 'Select an option'
+ placeholder: Spree.translations.select_an_option
})
})
diff --git a/backend/app/views/spree/admin/shared/_translations.html.erb b/backend/app/views/spree/admin/shared/_translations.html.erb
index b76d8e316f..4bef05484a 100644
--- a/backend/app/views/spree/admin/shared/_translations.html.erb
+++ b/backend/app/views/spree/admin/shared/_translations.html.erb
@@ -64,6 +64,7 @@
save: Spree.t(:save, scope: :actions),
searching: Spree.t(:searching),
server_error: Spree.t(:server_error),
+ select_an_option: Spree.t(:select_an_option),
sku: Spree.t(:sku),
type_to_search: Spree.t(:type_to_search),
taxon_placeholder: Spree.t(:taxon_placeholder),
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index 5e3779927d..e03110cd68 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -1513,6 +1513,7 @@ en:
select_a_return_authorization_reason: Select a reason for the return authorization
select_a_stock_location: Select a stock location
select_a_store_credit_reason: Select a reason for the store credit
+ select_an_option: Select an option
select_stock: Select stock
selected_quantity_not_available: ! 'selected of %{item} is not available.'
send_copy_of_all_mails_to: Send Copy of All Mails To