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.

Remove duplicated translations

Damian Legawiec91d0409a4353
diff --git a/frontend/app/views/spree/shared/_footer.html.erb b/frontend/app/views/spree/shared/_footer.html.erb
index bf4e7f3a29..6256204655 100644
--- a/frontend/app/views/spree/shared/_footer.html.erb
+++ b/frontend/app/views/spree/shared/_footer.html.erb
@@ -68,7 +68,7 @@
<%= Spree.t('nav_bar.my_account') %>
</div>
<div class="pt-2">
- <%= link_to Spree.t('nav_bar.my_orders'), spree.account_path(anchor: "account-my-orders") %>
+ <%= link_to Spree.t(:my_orders).upcase, spree.account_path(anchor: "account-my-orders") %>
</div>
</div>
<% end %>
diff --git a/frontend/app/views/spree/shared/_link_to_account.html.erb b/frontend/app/views/spree/shared/_link_to_account.html.erb
index 90cf1d3972..bc97358bd1 100644
--- a/frontend/app/views/spree/shared/_link_to_account.html.erb
+++ b/frontend/app/views/spree/shared/_link_to_account.html.erb
@@ -1,8 +1,8 @@
<% if try_spree_current_user %>
- <%= link_to Spree.t('nav_bar.my_account'), spree.account_path, class: 'dropdown-item' if spree.respond_to?(:account_path) %>
+ <%= link_to Spree.t(:my_account).upcase, spree.account_path, class: 'dropdown-item' if spree.respond_to?(:account_path) %>
<%= link_to Spree.t('nav_bar.admin_panel'), spree.admin_orders_path(locale: nil), class: 'dropdown-item text-uppercase' if try_spree_current_user.has_spree_role?(:admin) %>
- <%= link_to Spree.t('nav_bar.log_out'), spree_logout_path, class: 'dropdown-item', method: :get if defined?(spree_logout_path) %>
+ <%= link_to Spree.t(:logout).upcase, spree_logout_path, class: 'dropdown-item', method: :get if defined?(spree_logout_path) %>
<% else %>
- <%= link_to Spree.t('nav_bar.log_in'), spree_login_path, class: 'dropdown-item' if defined?(spree_login_path) %>
- <%= link_to Spree.t('nav_bar.sign_up'), spree_signup_path, class: 'dropdown-item' if defined?(spree_signup_path) %>
+ <%= link_to Spree.t(:login).upcase, spree_login_path, class: 'dropdown-item' if defined?(spree_login_path) %>
+ <%= link_to Spree.t(:sign_up).upcase, spree_signup_path, class: 'dropdown-item' if defined?(spree_signup_path) %>
<% end %>
diff --git a/frontend/app/views/spree/shared/_login.html.erb b/frontend/app/views/spree/shared/_login.html.erb
index 09d3e0acb5..b1185ba307 100755
--- a/frontend/app/views/spree/shared/_login.html.erb
+++ b/frontend/app/views/spree/shared/_login.html.erb
@@ -25,7 +25,7 @@
</div>
<% end %>
- <%= f.submit Spree.t(:log_in), class: 'btn btn-primary btn-block spree-btn mt-2' %>
+ <%= f.submit Spree.t(:login), class: 'btn btn-primary btn-block spree-btn mt-2' %>
<% end %>
<% if spree.respond_to?(:recover_password_path) %>
diff --git a/guides/src/content/developer/customization/authentication.md b/guides/src/content/developer/customization/authentication.md
index bb8febb819..036d7651c4 100644
--- a/guides/src/content/developer/customization/authentication.md
+++ b/guides/src/content/developer/customization/authentication.md
@@ -237,7 +237,7 @@ You will need to add this code:
<%%= link_to Spree.t(:login), spree_login_path %>
</li>
<li>
- <%%= link_to Spree.t(:signup), spree_signup_path %>
+ <%%= link_to Spree.t(:sign_up), spree_signup_path %>
</li>
<%% end %>
```