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
Improve Checkout translations
Damian Legawiece4c5ad8ba44f
diff --git a/storefront/app/views/spree/checkout/_payment_methods.html.erb b/storefront/app/views/spree/checkout/_payment_methods.html.erbindex 9172970671..19b3cfa105 100644--- a/storefront/app/views/spree/checkout/_payment_methods.html.erb+++ b/storefront/app/views/spree/checkout/_payment_methods.html.erb@@ -3,12 +3,12 @@<div class="d-flex flex-column mb-5"><p><% if @order.respond_to?(:gift_card) && @order.gift_card.present? %>- <%= Spree.t(:gift_card_amount_applied, amount: @order.display_gift_card_total, code: @order.gift_card.code) %>+ <%= Spree.t('storefront.checkout.gift_card_amount_applied', amount: @order.display_gift_card_total, code: @order.gift_card.code) %><% else %>- <%= Spree.t(:store_credits_amount_applied, amount: @order.display_total_applicable_store_credit.abs) %>+ <%= Spree.t('storefront.checkout.store_credits_amount_applied', amount: @order.display_total_applicable_store_credit.abs) %><% end %>- <%= Spree.t(:order_already_paid) %>+ <%= Spree.t('storefront.checkout.order_already_paid') %></p></div><div class="flex justify-end w-full">@@ -20,8 +20,8 @@<h5 class="mb-3 font-body font-semibold"><%= Spree.t(:payment) %></h5>- <p class="text-muted mb-3">- <%= Spree.t(:all_transactions_are_secure_and_encrypted) %>+ <p class="text-muted mb-3 text-neutral-600">+ <%= Spree.t('storefront.checkout.all_transactions_are_secure_and_encrypted') %></p><%= render partial: 'spree/checkout/payment/store_credit' %>@@ -55,7 +55,7 @@<% end %><p class="text-xs mt-2 mb-4">- <%= Spree.t(:by_placing_this_order_you_agree_to) %>+ <%= Spree.t('storefront.checkout.by_placing_this_order_you_agree_to') %><%= link_to Spree.t(:terms_of_service), policy_path('terms_of_service'), target: :_blank, class: 'text-primary' %> and<%= link_to Spree.t(:privacy_policy), policy_path('privacy_policy'), target: :_blank, class: 'text-primary' %></p>diff --git a/storefront/app/views/spree/checkout/edit.html.erb b/storefront/app/views/spree/checkout/edit.html.erbindex a88bf6fd07..1eed0d1454 100644--- a/storefront/app/views/spree/checkout/edit.html.erb+++ b/storefront/app/views/spree/checkout/edit.html.erb@@ -56,7 +56,7 @@<div class="px-5 flex flex-col gap-4"><% @order.shipments.each do |shipment| %><p class="word-break">- <% if @order.shipments.count > 1 || shipment.shipping_method.vendor.present? %>+ <% if @order.shipments.count > 1 || shipment.shipping_method.respond_to?(:vendor) && shipment.shipping_method.vendor.present? %><%= shipment.stock_location&.name %> -<% end %><%= shipment.shipping_method.name %>diff --git a/storefront/config/locales/en.yml b/storefront/config/locales/en.ymlindex 55b5e7cdf2..8a2865a9f0 100644--- a/storefront/config/locales/en.yml+++ b/storefront/config/locales/en.yml@@ -3,11 +3,17 @@ en:storefront:add_to_wishlist: Add to wishlistcheckout:+ already_have_an_account: Already have an account?+ all_transactions_are_secure_and_encrypted: All transactions are secure and encryptedback_to_cart: Back to cart+ by_placing_this_order_you_agree_to: By placing this order you agree tocontinue_to_cart: Continue to cartcontinue_to_checkout: Continue to checkoutdelivery_method: Delivery method+ gift_card_amount_applied: Gift card %{code} applied %{amount} to your order.+ order_already_paid: You don't need to pay anything, just click Place now button to confirm the order.shipping_not_available: Shipping not available+ store_credits_amount_applied: You applied a %{amount} store credit to your order.errors:invalid_line_items:one: 'This item will be removed from your cart because there are no delivery methods available for your address.'