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.

Localize address form labels

Gabriel Z. Lovison8758fb77d0d6
diff --git a/storefront/app/views/spree/addresses/edit.html.erb b/storefront/app/views/spree/addresses/edit.html.erb
index c58444be66..a7a41e60a5 100644
--- a/storefront/app/views/spree/addresses/edit.html.erb
+++ b/storefront/app/views/spree/addresses/edit.html.erb
@@ -42,13 +42,13 @@
<%= check_box_tag "default_shipping", "true", @address.user_default_shipping?,
class: 'input-checkbox input-address-default',
disabled: @address.user_default_shipping? %>
- Set as default delivery address
+ <%= Spree.t("address_book.set_as_default_delivery_address") %>
<% end %>
<%= label_tag "default_billing", class: "flex items-center gap-2 text-sm mb-4" do %>
<%= check_box_tag "default_billing", "true", @address.user_default_billing?,
class: 'input-checkbox input-address-default',
disabled: @address.user_default_billing? %>
- Set as default billing address
+ <%= Spree.t("address_book.set_as_default_billing_address") %>
<% end %>
</div>
<div class="border-t border-default -mx-4 lg:mx-0 px-4 flex justify-end items-center gap-4 py-6 lg:px-8">