Browse Source

chore(admin-ui): Add missing translation token

Michael Bromley 5 years ago
parent
commit
206cf489ef

+ 12 - 12
packages/admin-ui/i18n-coverage.json

@@ -1,49 +1,49 @@
 {
 {
-  "generatedOn": "2020-12-23T08:54:34.482Z",
-  "lastCommit": "e89845ec779938a7462fd15a103c1110afbf53af",
+  "generatedOn": "2020-12-23T10:30:40.834Z",
+  "lastCommit": "52ecb3373341617646affa8b2060589cd4e4c36f",
   "translationStatus": {
   "translationStatus": {
     "cs": {
     "cs": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 687,
       "translatedCount": 687,
       "percentage": 92
       "percentage": 92
     },
     },
     "de": {
     "de": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 596,
       "translatedCount": 596,
       "percentage": 80
       "percentage": 80
     },
     },
     "en": {
     "en": {
-      "tokenCount": 747,
-      "translatedCount": 745,
+      "tokenCount": 748,
+      "translatedCount": 747,
       "percentage": 100
       "percentage": 100
     },
     },
     "es": {
     "es": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 455,
       "translatedCount": 455,
       "percentage": 61
       "percentage": 61
     },
     },
     "fr": {
     "fr": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 692,
       "translatedCount": 692,
       "percentage": 93
       "percentage": 93
     },
     },
     "pl": {
     "pl": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 551,
       "translatedCount": 551,
       "percentage": 74
       "percentage": 74
     },
     },
     "pt_BR": {
     "pt_BR": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 642,
       "translatedCount": 642,
       "percentage": 86
       "percentage": 86
     },
     },
     "zh_Hans": {
     "zh_Hans": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 533,
       "translatedCount": 533,
       "percentage": 71
       "percentage": 71
     },
     },
     "zh_Hant": {
     "zh_Hant": {
-      "tokenCount": 747,
+      "tokenCount": 748,
       "translatedCount": 533,
       "translatedCount": 533,
       "percentage": 71
       "percentage": 71
     }
     }

+ 1 - 1
packages/admin-ui/src/lib/order/src/components/order-detail/order-detail.component.ts

@@ -254,7 +254,7 @@ export class OrderDetailComponent
                 switchMap(({ addManualPaymentToOrder }) => {
                 switchMap(({ addManualPaymentToOrder }) => {
                     switch (addManualPaymentToOrder.__typename) {
                     switch (addManualPaymentToOrder.__typename) {
                         case 'Order':
                         case 'Order':
-                            this.notificationService.success('order.add-payment-to-order-success');
+                            this.notificationService.success(_('order.add-payment-to-order-success'));
                             return this.orderTransitionService.transitionToPreModifyingState(
                             return this.orderTransitionService.transitionToPreModifyingState(
                                 order.id,
                                 order.id,
                                 order.nextStates,
                                 order.nextStates,

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/cs.json

@@ -554,6 +554,7 @@
     "add-note": "Přidat poznámku",
     "add-note": "Přidat poznámku",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Částka",
     "amount": "Částka",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/de.json

@@ -554,6 +554,7 @@
     "add-note": "Notiz hinzufügen",
     "add-note": "Notiz hinzufügen",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Betrag",
     "amount": "Betrag",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/en.json

@@ -554,6 +554,7 @@
     "add-note": "Add note",
     "add-note": "Add note",
     "add-payment": "Add payment",
     "add-payment": "Add payment",
     "add-payment-to-order": "Add payment to order",
     "add-payment-to-order": "Add payment to order",
+    "add-payment-to-order-success": "Successfully added a payment to the order",
     "add-surcharge": "Add surcharge",
     "add-surcharge": "Add surcharge",
     "added-items": "Added items",
     "added-items": "Added items",
     "amount": "Amount",
     "amount": "Amount",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/es.json

@@ -554,6 +554,7 @@
     "add-note": "",
     "add-note": "",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Precio",
     "amount": "Precio",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/fr.json

@@ -554,6 +554,7 @@
     "add-note": "Ajouter note",
     "add-note": "Ajouter note",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Quantité",
     "amount": "Quantité",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/pl.json

@@ -554,6 +554,7 @@
     "add-note": "Dodaj notatke",
     "add-note": "Dodaj notatke",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Ilość",
     "amount": "Ilość",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json

@@ -554,6 +554,7 @@
     "add-note": "Adicionar nota",
     "add-note": "Adicionar nota",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "Total",
     "amount": "Total",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json

@@ -554,6 +554,7 @@
     "add-note": "添加备注",
     "add-note": "添加备注",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "金额",
     "amount": "金额",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json

@@ -554,6 +554,7 @@
     "add-note": "新增備注",
     "add-note": "新增備注",
     "add-payment": "",
     "add-payment": "",
     "add-payment-to-order": "",
     "add-payment-to-order": "",
+    "add-payment-to-order-success": "",
     "add-surcharge": "",
     "add-surcharge": "",
     "added-items": "",
     "added-items": "",
     "amount": "金額",
     "amount": "金額",