Browse Source

fix(admin-ui): Fix payment states

Lukas Chladek 5 years ago
parent
commit
df32ba12b4

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

@@ -1,44 +1,44 @@
 {
-  "generatedOn": "2020-11-06T13:55:36.076Z",
-  "lastCommit": "b40843a2987222bafc8c90d47d7bb613521feb8f",
+  "generatedOn": "2020-11-06T14:43:15.173Z",
+  "lastCommit": "d41471b9a7958847813e314d016ff0d5807d1189",
   "translationStatus": {
     "cs": {
-      "tokenCount": 678,
-      "translatedCount": 677,
+      "tokenCount": 680,
+      "translatedCount": 680,
       "percentage": 100
     },
     "de": {
-      "tokenCount": 678,
-      "translatedCount": 609,
+      "tokenCount": 680,
+      "translatedCount": 610,
       "percentage": 90
     },
     "en": {
-      "tokenCount": 678,
-      "translatedCount": 676,
+      "tokenCount": 680,
+      "translatedCount": 679,
       "percentage": 100
     },
     "es": {
-      "tokenCount": 678,
+      "tokenCount": 680,
       "translatedCount": 466,
       "percentage": 69
     },
     "pl": {
-      "tokenCount": 678,
+      "tokenCount": 680,
       "translatedCount": 564,
       "percentage": 83
     },
     "pt_BR": {
-      "tokenCount": 678,
-      "translatedCount": 655,
-      "percentage": 97
+      "tokenCount": 680,
+      "translatedCount": 656,
+      "percentage": 96
     },
     "zh_Hans": {
-      "tokenCount": 678,
+      "tokenCount": 680,
       "translatedCount": 548,
       "percentage": 81
     },
     "zh_Hant": {
-      "tokenCount": 678,
+      "tokenCount": 680,
       "translatedCount": 548,
       "percentage": 81
     }

+ 2 - 0
packages/admin-ui/src/lib/core/src/shared/pipes/state-i18n-token.pipe.ts

@@ -20,6 +20,8 @@ export class StateI18nTokenPipe implements PipeTransform {
         Settled: _('state.settled'),
         Failed: _('state.failed'),
         Error: _('state.error'),
+        Created: _('state.created'),
+        Declined: _('state.declined')
     };
     transform<T extends unknown>(value: T): T {
         if (typeof value === 'string') {

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

@@ -678,8 +678,10 @@
     "adding-items": "Košík",
     "all-orders": "Všechny objednávky",
     "arranging-payment": "Zřizování platby",
-    "authorized": "Autorizovaná",
+    "authorized": "Autorizováno",
     "cancelled": "Zrušeno",
+    "created": "Vytvořeno",
+    "declined": "Odmítnuto",
     "delivered": "Doručeno",
     "error": "Chyba",
     "failed": "Selhalo",

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

@@ -680,6 +680,8 @@
     "arranging-payment": "Zahlung einrichten",
     "authorized": "Autorisiert",
     "cancelled": "Storniert",
+    "created": "",
+    "declined": "",
     "delivered": "Ausgeführt",
     "error": "",
     "failed": "",
@@ -709,4 +711,4 @@
     "job-result": "Job-Ergebnis",
     "job-state": "Job-Status"
   }
-}
+}

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

@@ -680,6 +680,8 @@
     "arranging-payment": "Arranging payment",
     "authorized": "Authorized",
     "cancelled": "Cancelled",
+    "created": "Created",
+    "declined": "Declined",
     "delivered": "Delivered",
     "error": "Error",
     "failed": "Failed",
@@ -709,4 +711,4 @@
     "job-result": "Job result",
     "job-state": "Job state"
   }
-}
+}

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

@@ -680,6 +680,8 @@
     "arranging-payment": "",
     "authorized": "",
     "cancelled": "",
+    "created": "",
+    "declined": "",
     "delivered": "",
     "error": "",
     "failed": "",

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

@@ -680,6 +680,8 @@
     "arranging-payment": "Oczekiwanie na płatność",
     "authorized": "",
     "cancelled": "Anulowano",
+    "created": "",
+    "declined": "",
     "delivered": "Zrealizowano",
     "error": "",
     "failed": "",

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

@@ -680,6 +680,8 @@
     "arranging-payment": "Organização de pagamento",
     "authorized": "Autorizado",
     "cancelled": "Cancelado",
+    "created": "",
+    "declined": "",
     "delivered": "Realizado",
     "error": "",
     "failed": "",
@@ -709,4 +711,4 @@
     "job-result": "Resultado do trabalho",
     "job-state": "Estado do trabalho"
   }
-}
+}

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

@@ -680,6 +680,8 @@
     "arranging-payment": "正在付款",
     "authorized": "",
     "cancelled": "已取消",
+    "created": "",
+    "declined": "",
     "delivered": "已完成",
     "error": "",
     "failed": "",

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

@@ -680,6 +680,8 @@
     "arranging-payment": "正在付款",
     "authorized": "",
     "cancelled": "已取消",
+    "created": "",
+    "declined": "",
     "delivered": "已完成",
     "error": "",
     "failed": "",