diff --git a/app/views/spree/users/show.html.haml b/app/views/spree/users/show.html.haml
index ecf06885cd..c7e685239c 100644
--- a/app/views/spree/users/show.html.haml
+++ b/app/views/spree/users/show.html.haml
@@ -20,13 +20,13 @@
.row.tabset-ctrl#account-tabs{ style: 'margin-bottom: 100px', navigate: 'true', selected: 'orders', prefix: 'account' }
.small.12.medium-3.columns.tab{ name: "orders" }
- %a{ href: 'javascript:void(0)' } My Orders
+ %a{ href: 'javascript:void(0)' }=t('.tabs.orders')
.small.12.medium-3.columns.tab{ name: "cards" }
- %a{ href: 'javascript:void(0)' } My Credit Cards
+ %a{ href: 'javascript:void(0)' }=t('.tabs.cards')
.small.12.medium-3.columns.tab{ name: "history" }
- %a{ href: 'javascript:void(0)' } Transactions
+ %a{ href: 'javascript:void(0)' }=t('.tabs.transactions')
.small.12.medium-3.columns.tab{ name: "details" }
- %a{ href: 'javascript:void(0)' }My Details
+ %a{ href: 'javascript:void(0)' }=t('.tabs.details')
.small-12.columns.tab-view
= render partial: "shared/footer"
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e8d5a5f616..ae1cdbebcd 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2190,6 +2190,11 @@ Please follow the instructions there to make your enterprise visible on the Open
show:
open_orders: Open Orders
transaction_history: Transaction History
+ tabs:
+ orders: Orders
+ cards: Credit Cards
+ transactions: Transactions
+ details: Details
open_orders:
order: Order
shop: Shop
diff --git a/spec/features/consumer/account/cards_spec.rb b/spec/features/consumer/account/cards_spec.rb
index 0dbf2108dc..48f9019e34 100644
--- a/spec/features/consumer/account/cards_spec.rb
+++ b/spec/features/consumer/account/cards_spec.rb
@@ -13,7 +13,7 @@ feature "Credit Cards", js: true do
it "lists saved cards, shows interface for adding new cards" do
visit "/account"
- click_link 'My Credit Cards'
+ click_link I18n.t('spree.users.show.tabs.cards')
expect(page).to have_content I18n.t(:saved_cards)