Skip to content

Commit

Permalink
fix(admin-ui): Fix payment states
Browse files Browse the repository at this point in the history
  • Loading branch information
chladog authored Nov 6, 2020
1 parent 788ba87 commit df32ba1
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 19 deletions.
30 changes: 15 additions & 15 deletions packages/admin-ui/i18n-coverage.json
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
4 changes: 3 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "Zahlung einrichten",
"authorized": "Autorisiert",
"cancelled": "Storniert",
"created": "",
"declined": "",
"delivered": "Ausgeführt",
"error": "",
"failed": "",
Expand Down Expand Up @@ -709,4 +711,4 @@
"job-result": "Job-Ergebnis",
"job-state": "Job-Status"
}
}
}
4 changes: 3 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "Arranging payment",
"authorized": "Authorized",
"cancelled": "Cancelled",
"created": "Created",
"declined": "Declined",
"delivered": "Delivered",
"error": "Error",
"failed": "Failed",
Expand Down Expand Up @@ -709,4 +711,4 @@
"job-result": "Job result",
"job-state": "Job state"
}
}
}
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "",
"authorized": "",
"cancelled": "",
"created": "",
"declined": "",
"delivered": "",
"error": "",
"failed": "",
Expand Down
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "Oczekiwanie na płatność",
"authorized": "",
"cancelled": "Anulowano",
"created": "",
"declined": "",
"delivered": "Zrealizowano",
"error": "",
"failed": "",
Expand Down
4 changes: 3 additions & 1 deletion packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "Organização de pagamento",
"authorized": "Autorizado",
"cancelled": "Cancelado",
"created": "",
"declined": "",
"delivered": "Realizado",
"error": "",
"failed": "",
Expand Down Expand Up @@ -709,4 +711,4 @@
"job-result": "Resultado do trabalho",
"job-state": "Estado do trabalho"
}
}
}
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "正在付款",
"authorized": "",
"cancelled": "已取消",
"created": "",
"declined": "",
"delivered": "已完成",
"error": "",
"failed": "",
Expand Down
2 changes: 2 additions & 0 deletions packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@
"arranging-payment": "正在付款",
"authorized": "",
"cancelled": "已取消",
"created": "",
"declined": "",
"delivered": "已完成",
"error": "",
"failed": "",
Expand Down

0 comments on commit df32ba1

Please sign in to comment.