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: use translation for Add Link button

Damian Legawieca98b43e566a1
diff --git a/admin/app/views/spree/admin/page_links/_list.html.erb b/admin/app/views/spree/admin/page_links/_list.html.erb
index 9e98bc77b0..deb3b16a73 100644
--- a/admin/app/views/spree/admin/page_links/_list.html.erb
+++ b/admin/app/views/spree/admin/page_links/_list.html.erb
@@ -31,6 +31,6 @@
<% add_url = spree.admin_page_section_block_links_path(parent.section, parent) %>
<% end %>
- <%= link_to_with_icon 'plus', 'Add link', add_url, class: 'btn btn-primary w-100', data: { turbo_method: :post } if add_url && can?(:create, Spree::PageLink.new(parent: parent)) %>
+ <%= link_to_with_icon 'plus', Spree.t(:add_link), add_url, class: 'btn btn-primary w-100', data: { turbo_method: :post } if add_url && can?(:create, Spree::PageLink.new(parent: parent)) %>
<% end %>
</div>
\ No newline at end of file
diff --git a/core/config/locales/en.yml b/core/config/locales/en.yml
index f15ce0fe43..00d7e9ae2a 100644
--- a/core/config/locales/en.yml
+++ b/core/config/locales/en.yml
@@ -597,6 +597,7 @@ en:
add_country: Add Country
add_coupon_code: Add Coupon Code
add_gift_card: Add Gift Card
+ add_link: Add link
add_new_address: Add new address
add_new_credit_card: Add a new card
add_new_header: Add New Header