Skip to content

Commit

Permalink
review change
Browse files Browse the repository at this point in the history
  • Loading branch information
anjana-bl committed Oct 17, 2023
1 parent 5a0116a commit bd6447e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const myAccountV2Order = {
viewAllOrders: 'View All Orders',
noInvoices: 'Invoices are not generated yet. Please come back later.',
},
myAccountViewOrder: {
myAccountV2Orders: {
item: '{{value}} Item',
items: '{{value}} Items',
heading: 'Orders And Returns',
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/order/assets/translations/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export const orderTranslationChunksConfig: TranslationChunksConfig = {
myAccountV2Order: [
'myAccountV2OrderHistory',
'myAccountV2OrderDetails',
'myAccountViewOrder',
'myAccountV2Orders',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
class="cx-my-account-view-heading"
[attr.aria-label]="'myAccountV2OrderHistory.orderListResults' | cxTranslate"
>
{{ 'myAccountViewOrder.heading' | cxTranslate }}
{{ 'myAccountV2Orders.heading' | cxTranslate }}
</div>

<!-- SHOW MORE -->
<div class="cx-my-account-view-show-more">
<a
id="show-more-orders"
[attr.aria-label]="'myAccountViewOrder.showMore' | cxTranslate"
[attr.aria-label]="'myAccountV2Orders.showMore' | cxTranslate"
class="btn-link cx-action-link"
[routerLink]="
{
cxRoute: 'orders'
} | cxUrl
"
>
{{ 'myAccountViewOrder.showMore' | cxTranslate }}
{{ 'myAccountV2Orders.showMore' | cxTranslate }}
</a>
</div>
</div>
Expand All @@ -34,7 +34,7 @@
<div
class="cx-my-account-view-status"
[attr.aria-label]="
'myAccountViewOrder.orderStatusLabel' | cxTranslate
'myAccountV2Orders.orderStatusLabel' | cxTranslate
"
>
{{
Expand All @@ -49,7 +49,7 @@
"
>
{{
'myAccountViewOrder.orderNumber'
'myAccountV2Orders.orderNumber'
| cxTranslate: { value: order.code }
}}
</div>
Expand All @@ -72,20 +72,20 @@
<span *ngIf="order.totalItems - 1 > 1">
+
{{
'myAccountViewOrder.items'
'myAccountV2Orders.items'
| cxTranslate: { value: order.totalItems - 1 }
}}
</span>
<span *ngIf="order.totalItems - 1 === 1">
+
{{
'myAccountViewOrder.item' | cxTranslate: { value: 1 }
'myAccountV2Orders.item' | cxTranslate: { value: 1 }
}}
</span>
</div>
<div class="cx-my-account-view-purchased-on">
{{
'myAccountViewOrder.purchasedOn'
'myAccountV2Orders.purchasedOn'
| cxTranslate
: {
value: order.placed | cxDate: 'd, MMMM, yyyy'
Expand All @@ -94,15 +94,15 @@
</div>
<div class="cx-my-account-view-item-count">
{{
'myAccountViewOrder.orderedItems'
'myAccountV2Orders.orderedItems'
| cxTranslate: { value: order.totalItems }
}}
</div>
</div>
<div class="cx-my-account-view-order-column-1-details-bottom">
<div class="cx-my-account-view-total-price">
{{
'myAccountViewOrder.totalPrice'
'myAccountV2Orders.totalPrice'
| cxTranslate: { value: order.total?.formattedValue }
}}
</div>
Expand All @@ -115,7 +115,7 @@
<a
class="btn-link cx-action-link"
[attr.aria-label]="
'myAccountViewOrder.orderDetailsLabel' | cxTranslate
'myAccountV2Orders.orderDetailsLabel' | cxTranslate
"
[routerLink]="
{
Expand All @@ -124,7 +124,7 @@
} | cxUrl
"
>
{{ 'myAccountViewOrder.orderDetails' | cxTranslate }}
{{ 'myAccountV2Orders.orderDetails' | cxTranslate }}
</a>
</span>
<!-- return order -->
Expand All @@ -139,7 +139,7 @@
} | cxUrl
"
>
{{ 'myAccountViewOrder.returnOrder' | cxTranslate }}
{{ 'myAccountV2Orders.returnOrder' | cxTranslate }}
</a>
</span>
</div>
Expand Down

0 comments on commit bd6447e

Please sign in to comment.