From d2892d8522c466bd4324bd3d56925fad4f5c7950 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Thu, 28 Dec 2023 12:59:33 +0100 Subject: [PATCH] Extract common index pages translations to the super component --- .../solidus_admin/adjustment_reasons/index/component.yml | 4 ---- .../solidus_admin/option_types/index/component.yml | 4 ---- .../components/solidus_admin/products/index/component.yml | 2 -- .../solidus_admin/promotion_categories/index/component.yml | 4 ---- .../components/solidus_admin/promotions/index/component.yml | 3 --- .../components/solidus_admin/properties/index/component.yml | 4 ---- .../solidus_admin/refund_reasons/index/component.yml | 4 ---- .../solidus_admin/reimbursement_types/index/component.yml | 4 ---- .../solidus_admin/return_reasons/index/component.yml | 4 ---- .../solidus_admin/shipping_categories/index/component.yml | 4 ---- .../solidus_admin/shipping_methods/index/component.yml | 4 ---- .../solidus_admin/stock_locations/index/component.yml | 3 --- .../solidus_admin/store_credit_reasons/index/component.yml | 4 ---- .../app/components/solidus_admin/stores/index/component.yml | 4 ---- .../solidus_admin/tax_categories/index/component.rb | 4 ++-- .../solidus_admin/tax_categories/index/component.yml | 6 ------ .../components/solidus_admin/tax_rates/index/component.yml | 4 ---- .../components/solidus_admin/taxonomies/index/component.yml | 4 ---- .../app/components/solidus_admin/users/index/component.yml | 2 -- .../app/components/solidus_admin/zones/index/component.yml | 4 ---- 20 files changed, 2 insertions(+), 74 deletions(-) delete mode 100644 admin/app/components/solidus_admin/adjustment_reasons/index/component.yml delete mode 100644 admin/app/components/solidus_admin/option_types/index/component.yml delete mode 100644 admin/app/components/solidus_admin/promotion_categories/index/component.yml delete mode 100644 admin/app/components/solidus_admin/properties/index/component.yml delete mode 100644 admin/app/components/solidus_admin/refund_reasons/index/component.yml delete mode 100644 admin/app/components/solidus_admin/reimbursement_types/index/component.yml delete mode 100644 admin/app/components/solidus_admin/return_reasons/index/component.yml delete mode 100644 admin/app/components/solidus_admin/shipping_categories/index/component.yml delete mode 100644 admin/app/components/solidus_admin/shipping_methods/index/component.yml delete mode 100644 admin/app/components/solidus_admin/store_credit_reasons/index/component.yml delete mode 100644 admin/app/components/solidus_admin/stores/index/component.yml delete mode 100644 admin/app/components/solidus_admin/tax_categories/index/component.yml delete mode 100644 admin/app/components/solidus_admin/tax_rates/index/component.yml delete mode 100644 admin/app/components/solidus_admin/taxonomies/index/component.yml delete mode 100644 admin/app/components/solidus_admin/zones/index/component.yml diff --git a/admin/app/components/solidus_admin/adjustment_reasons/index/component.yml b/admin/app/components/solidus_admin/adjustment_reasons/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/adjustment_reasons/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/option_types/index/component.yml b/admin/app/components/solidus_admin/option_types/index/component.yml deleted file mode 100644 index fe07d079a52..00000000000 --- a/admin/app/components/solidus_admin/option_types/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - batch_actions: - delete: 'Delete' - add: 'Add new' diff --git a/admin/app/components/solidus_admin/products/index/component.yml b/admin/app/components/solidus_admin/products/index/component.yml index 8ae8270bd25..c533d4319a7 100644 --- a/admin/app/components/solidus_admin/products/index/component.yml +++ b/admin/app/components/solidus_admin/products/index/component.yml @@ -1,8 +1,6 @@ en: image: 'Image' - add: 'Add new' batch_actions: - delete: 'Delete' discontinue: 'Discontinue' activate: 'Activate' filters: diff --git a/admin/app/components/solidus_admin/promotion_categories/index/component.yml b/admin/app/components/solidus_admin/promotion_categories/index/component.yml deleted file mode 100644 index fe07d079a52..00000000000 --- a/admin/app/components/solidus_admin/promotion_categories/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - batch_actions: - delete: 'Delete' - add: 'Add new' diff --git a/admin/app/components/solidus_admin/promotions/index/component.yml b/admin/app/components/solidus_admin/promotions/index/component.yml index cdb40f9455b..789f68b69d5 100644 --- a/admin/app/components/solidus_admin/promotions/index/component.yml +++ b/admin/app/components/solidus_admin/promotions/index/component.yml @@ -1,8 +1,5 @@ en: promotion_image: 'Image' - add: 'Add new' - batch_actions: - delete: 'Delete' scopes: active: Active draft: Draft diff --git a/admin/app/components/solidus_admin/properties/index/component.yml b/admin/app/components/solidus_admin/properties/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/properties/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/refund_reasons/index/component.yml b/admin/app/components/solidus_admin/refund_reasons/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/refund_reasons/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/reimbursement_types/index/component.yml b/admin/app/components/solidus_admin/reimbursement_types/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/reimbursement_types/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/return_reasons/index/component.yml b/admin/app/components/solidus_admin/return_reasons/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/return_reasons/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/shipping_categories/index/component.yml b/admin/app/components/solidus_admin/shipping_categories/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/shipping_categories/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/shipping_methods/index/component.yml b/admin/app/components/solidus_admin/shipping_methods/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/shipping_methods/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/stock_locations/index/component.yml b/admin/app/components/solidus_admin/stock_locations/index/component.yml index 72183961309..746dbf1ffec 100644 --- a/admin/app/components/solidus_admin/stock_locations/index/component.yml +++ b/admin/app/components/solidus_admin/stock_locations/index/component.yml @@ -1,6 +1,3 @@ en: active: 'Active' inactive: 'Inactive' - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/store_credit_reasons/index/component.yml b/admin/app/components/solidus_admin/store_credit_reasons/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/store_credit_reasons/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/stores/index/component.yml b/admin/app/components/solidus_admin/stores/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/stores/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/tax_categories/index/component.rb b/admin/app/components/solidus_admin/tax_categories/index/component.rb index 897a585e672..235d64d69ae 100644 --- a/admin/app/components/solidus_admin/tax_categories/index/component.rb +++ b/admin/app/components/solidus_admin/tax_categories/index/component.rb @@ -47,9 +47,9 @@ def columns header: :is_default, data: ->(tax_category) { if tax_category.is_default? - component('ui/badge').new(name: t('.yes'), color: :green) + component('ui/badge').yes else - component('ui/badge').new(name: t('.no'), color: :graphite_light) + component('ui/badge').no end }, }, diff --git a/admin/app/components/solidus_admin/tax_categories/index/component.yml b/admin/app/components/solidus_admin/tax_categories/index/component.yml deleted file mode 100644 index faff41bc439..00000000000 --- a/admin/app/components/solidus_admin/tax_categories/index/component.yml +++ /dev/null @@ -1,6 +0,0 @@ -en: - "yes": "Yes" - "no": "No" - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/tax_rates/index/component.yml b/admin/app/components/solidus_admin/tax_rates/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/tax_rates/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete' diff --git a/admin/app/components/solidus_admin/taxonomies/index/component.yml b/admin/app/components/solidus_admin/taxonomies/index/component.yml deleted file mode 100644 index fe07d079a52..00000000000 --- a/admin/app/components/solidus_admin/taxonomies/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - batch_actions: - delete: 'Delete' - add: 'Add new' diff --git a/admin/app/components/solidus_admin/users/index/component.yml b/admin/app/components/solidus_admin/users/index/component.yml index 6a7fa4eaab4..f6ba346ec4d 100644 --- a/admin/app/components/solidus_admin/users/index/component.yml +++ b/admin/app/components/solidus_admin/users/index/component.yml @@ -1,8 +1,6 @@ en: promotion_image: 'Image' - add: 'Add new' batch_actions: - delete: 'Delete' discontinue: 'Discontinue' activate: 'Activate' filters: diff --git a/admin/app/components/solidus_admin/zones/index/component.yml b/admin/app/components/solidus_admin/zones/index/component.yml deleted file mode 100644 index 54418702ad3..00000000000 --- a/admin/app/components/solidus_admin/zones/index/component.yml +++ /dev/null @@ -1,4 +0,0 @@ -en: - add: 'Add new' - batch_actions: - delete: 'Delete'