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 account existence message in checkout

Gabriel Z. Lovison148147b4b1eb
diff --git a/storefront/app/views/spree/checkout/_address.html.erb b/storefront/app/views/spree/checkout/_address.html.erb
index f84a71b8e7..1f416e7bd9 100644
--- a/storefront/app/views/spree/checkout/_address.html.erb
+++ b/storefront/app/views/spree/checkout/_address.html.erb
@@ -49,7 +49,7 @@
<% end %>
</div>
</label>
- </label>
+ </div>
</li>
</ul>
</div>
@@ -118,8 +118,7 @@
<% unless try_spree_current_user %>
<% if already_have_an_account? %>
<div class="py-2 text-sm">
- It seems you already have an account with us. Please
- <%= link_to Spree.t(:login), spree_login_path, class: 'text-primary font-semibold' %> to continue.
+ <%= Spree.t("storefront.checkout.it_seems_you_already_have_an_account_html", link: link_to(Spree.t(:login), spree_login_path, class: 'text-primary font-semibold')) %>
</div>
<% end %>
<% end %>
diff --git a/storefront/config/locales/en.yml b/storefront/config/locales/en.yml
index 63f97dc0c5..606e97b2a5 100644
--- a/storefront/config/locales/en.yml
+++ b/storefront/config/locales/en.yml
@@ -30,6 +30,7 @@ en:
one: This item will be removed from your cart because there are no delivery methods available for your address.
other: These %{count} items will be removed from your cart because there are no delivery methods available for your address.
gift_card_amount_applied: Gift card %{code} applied %{amount} to your order.
+ it_seems_you_already_have_an_account_html: It seems you already have an account with us. Please %{link} to continue.
or_continue_below: or continue below
order_already_paid: You don't need to pay anything, just click Place now button to confirm the order.
order_success: Your order is confirmed!