Skip to content

Commit

Permalink
fix(foxy-customer-portal): add missing translations for transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Mar 22, 2024
1 parent 6ee779f commit 1de54e8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/static/schemas/customer-portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,56 @@
"default": "Looks like you didn't save your changes! What would you like to do with them?"
},
"update": { "type": "string", "default": "Update" },
"transactions-table": {
"additionalProperties": false,
"properties": {
"date": { "type": "string", "default": "{{value, date}}" },
"price": { "type": "string", "default": "{{amount, price}}" },
"receipt": { "type": "string", "default": "Receipt" },
"transaction_approved": { "type": "string", "default": "Approved" },
"transaction_authorized": { "type": "string", "default": "Authorized" },
"transaction_captured": { "type": "string", "default": "Captured" },
"transaction_completed": { "type": "string", "default": "Completed" },
"transaction_declined": { "type": "string", "default": "Declined" },
"transaction_pending": { "type": "string", "default": "Pending" },
"transaction_refunded": { "type": "string", "default": "Refunded" },
"transaction_rejected": { "type": "string", "default": "Rejected" },
"transaction_summary": { "type": "string", "default": "{{most_expensive_item.name}}" },
"transaction_summary_plural": {
"type": "string",
"default": "{{most_expensive_item.name}} and {{count_minus_one}} more"
},
"transaction_verified": { "type": "string", "default": "Verified" },
"transaction_voided": { "type": "string", "default": "Voided" },
"spinner": {
"additionalProperties": false,
"properties": {
"loading_busy": { "type": "string", "default": "Loading" },
"loading_empty": { "type": "string", "default": "No data" },
"loading_error": { "type": "string", "default": "Failed to load" }
},
"required": ["loading_busy", "loading_empty", "loading_error"]
}
},
"required": [
"date",
"price",
"receipt",
"transaction_approved",
"transaction_authorized",
"transaction_captured",
"transaction_completed",
"transaction_declined",
"transaction_pending",
"transaction_refunded",
"transaction_rejected",
"transaction_summary",
"transaction_summary_plural",
"transaction_verified",
"transaction_voided",
"spinner"
]
},
"address-card": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -1943,6 +1993,7 @@
"undo_header",
"undo_message",
"update",
"transactions-table",
"address-card",
"address-form",
"customer-form",
Expand Down
22 changes: 22 additions & 0 deletions src/static/translations/customer-portal/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@
"undo_header": "Unsaved changes",
"undo_message": "Looks like you didn't save your changes! What would you like to do with them?",
"update": "Update",
"transactions-table": {
"date": "{{value, date}}",
"price": "{{amount, price}}",
"receipt": "Receipt",
"transaction_approved": "Approved",
"transaction_authorized": "Authorized",
"transaction_captured": "Captured",
"transaction_completed": "Completed",
"transaction_declined": "Declined",
"transaction_pending": "Pending",
"transaction_refunded": "Refunded",
"transaction_rejected": "Rejected",
"transaction_summary": "{{most_expensive_item.name}}",
"transaction_summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
"transaction_verified": "Verified",
"transaction_voided": "Voided",
"spinner": {
"loading_busy": "Loading",
"loading_empty": "No data",
"loading_error": "Failed to load"
}
},
"address-card": {
"default_billing_address": "Default billing address",
"default_shipping_address": "Default shipping address",
Expand Down

0 comments on commit 1de54e8

Please sign in to comment.