Adding translations for /account tabs

This commit is contained in:
Rob Harrington
2017-05-26 17:22:53 +10:00
parent f4c3fbf8bc
commit 532dc57725
3 changed files with 10 additions and 5 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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)