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 admin exports translations

Damian Legawiec5cce690aa611
diff --git a/admin/app/controllers/spree/admin/exports_controller.rb b/admin/app/controllers/spree/admin/exports_controller.rb
index 94fae19adc..c96632fc2f 100644
--- a/admin/app/controllers/spree/admin/exports_controller.rb
+++ b/admin/app/controllers/spree/admin/exports_controller.rb
@@ -15,7 +15,7 @@ module Spree
end
def message_after_create
- Spree.t(:export_created)
+ Spree.t('admin.export_created')
end
def collection
diff --git a/admin/app/views/spree/admin/exports/new.html.erb b/admin/app/views/spree/admin/exports/new.html.erb
index 0450be1bd9..b2757e314f 100644
--- a/admin/app/views/spree/admin/exports/new.html.erb
+++ b/admin/app/views/spree/admin/exports/new.html.erb
@@ -18,7 +18,7 @@
<%= Spree.t(:filtered_records) %>
<br />
<span class="text-muted font-weight-normal">
- <%= Spree.t(:export_only_filtered_records) %>
+ <%= Spree.t('admin.export_only_filtered_records') %>
</span>
<% end %>
</div>
@@ -28,7 +28,7 @@
<%= Spree.t(:all) %>
<br />
<span class="text-muted font-weight-normal">
- <%= Spree.t(:export_all) %>
+ <%= Spree.t('admin.export_all') %>
</span>
<% end %>
</div>
diff --git a/admin/spec/controllers/spree/admin/exports_controller_spec.rb b/admin/spec/controllers/spree/admin/exports_controller_spec.rb
index 249e7ee6be..80be9d1512 100644
--- a/admin/spec/controllers/spree/admin/exports_controller_spec.rb
+++ b/admin/spec/controllers/spree/admin/exports_controller_spec.rb
@@ -46,7 +46,7 @@ describe Spree::Admin::ExportsController, type: :controller do
it 'sets a flash message' do
subject
- expect(flash[:success]).to eq(Spree.t(:export_created))
+ expect(flash[:success]).to eq('Your export was started. You will receive an email with a download link when it is ready!')
end
context 'when filtered is set to all' do