Skip to content

Commit

Permalink
fix(lang): change some lang in cart and product pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bravemaster619 committed May 12, 2020
1 parent 8ec85f9 commit c2fb7e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/cart/cart.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ <h3 localValue [data]="item.product" key="name"></h3>

<ng-template #emptyCart>
<ion-row class="ion-padding">
<ion-col class="ion-text-center" translate="No data to display"></ion-col>
<ion-col class="ion-text-center" translate="You have no items in your shopping cart"></ion-col>
</ion-row>
</ng-template>
6 changes: 6 additions & 0 deletions src/app/pages/product/product.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ <h3 localValue [data]="product" key="name"></h3>
<!-- END PRICE LABEL -->
<ng-container *ngIf="isInStock">
<ng-container *ngIf="isInRange && schedules">
<ion-row class="ion-padding w-100">
<ion-col align="center">
<ion-label class="ion-text-center" translate="Please select delivery date and quantity">
</ion-label>
</ion-col>
</ion-row>
<ion-item *ngFor="let schedule of schedules" class="w-100" lines="none">
<ion-row class="ion-no-margin ion-no-padding w-100 row-schedule">
<ion-col size="6">
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,7 @@
"Max quantity": "Max quantity: {{value}}",
"Product is out of stock": "Product {{value}} is out of stock",
"Cart item delivery has expired": "Cart item delivery has expired",
"This product is out of stock": "This product is out of stock"
"This product is out of stock": "This product is out of stock",
"Please select delivery date and quantity": "Please select delivery date and quantity",
"You have no items in your shopping cart": "You have no items in your shopping cart"
}
4 changes: 3 additions & 1 deletion src/assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,7 @@
"Max quantity": "最大数量: {{value}}",
"Product is out of stock": "{{value}}已售罄",
"Cart item delivery has expired": "交货日期已过期",
"This product is out of stock": "此产品缺货"
"This product is out of stock": "此产品缺货",
"Please select delivery date and quantity": "请选择送货时间和商品数量",
"You have no items in your shopping cart": "您的购物车里现在没有商品"
}

0 comments on commit c2fb7e8

Please sign in to comment.