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.

fix: add two words connector on checkout agreement text (#12562)

Caio Câmara6b35744b4906
diff --git a/storefront/app/views/spree/checkout/_payment_methods.html.erb b/storefront/app/views/spree/checkout/_payment_methods.html.erb
index 19b3cfa105..155f1a10d5 100644
--- a/storefront/app/views/spree/checkout/_payment_methods.html.erb
+++ b/storefront/app/views/spree/checkout/_payment_methods.html.erb
@@ -56,8 +56,8 @@
<p class="text-xs mt-2 mb-4">
<%= 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' %>
+ <%= link_to Spree.t(:terms_of_service), policy_path('terms_of_service'), target: :_blank, class: 'text-primary' %><%= I18n.t('support.array.two_words_connector') %>
+ <%= link_to Spree.t(:privacy_policy), policy_path('privacy_policy'), target: :_blank, class: 'text-primary' %>.
</p>
<div class="flex justify-end w-full">
diff --git a/storefront/config/i18n-tasks.yml b/storefront/config/i18n-tasks.yml
index 98ebf81dbd..521112651a 100644
--- a/storefront/config/i18n-tasks.yml
+++ b/storefront/config/i18n-tasks.yml
@@ -138,7 +138,8 @@ search:
# # Keep in mind the context of all the strings for a more accurate translation.
## Do not consider these keys missing:
-# ignore_missing:
+ignore_missing:
+ - 'support.array.{last_word_connector,two_words_connector,words_connector}' # rails_i18n default support locales
# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
# - '{devise,simple_form}.*'