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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Localize buttons in the missing all line items checkout view
Gabriel Z. Lovison05b674f5a35c
diff --git a/storefront/app/views/spree/checkout/_missing_all_line_items.html.erb b/storefront/app/views/spree/checkout/_missing_all_line_items.html.erbindex 10ef2cfb2d..0ffd20d03e 100644--- a/storefront/app/views/spree/checkout/_missing_all_line_items.html.erb+++ b/storefront/app/views/spree/checkout/_missing_all_line_items.html.erb@@ -7,8 +7,8 @@<p class="mb-4"><%= Spree.t('errors.messages.no_shipping_methods_available') %> </p><div class="flex justify-end items-center flex-wrap mt-6">- <%= link_to 'Return to cart', spree.cart_path, class: 'mx-4 py-4', target: :_top %>- <%= link_to 'Close', checkout_state_path(@order.token, @order.state), class: 'btn-primary font-semibold checkout-content-save-continue-button my-5 ml-4 !py-4', target: :_top %>+ <%= link_to Spree.t("storefront.checkout.return_to_cart"), spree.cart_path, class: 'mx-4 py-4', target: :_top %>+ <%= link_to Spree.t(:close), checkout_state_path(@order.token, @order.state), class: 'btn-primary font-semibold checkout-content-save-continue-button my-5 ml-4 !py-4', target: :_top %></div></div></div>diff --git a/storefront/config/locales/en.yml b/storefront/config/locales/en.ymlindex dca96d9ba0..82a796cc64 100644--- a/storefront/config/locales/en.yml+++ b/storefront/config/locales/en.yml@@ -37,6 +37,7 @@ en:order_success: Your order is confirmed!order_success_message: When your order is ready, you will receive an email confirmation.payment_processing_message: You will receive an email confirmation when your payment is processed.+ return_to_cart: Return to cartshipping_not_available: Shipping not availablesignup_for_an_account: Create an account for faster future purchases, order tracking, and more.special_instructions_placeholder: Here you can add any special instructions for your order