mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
11068: separate prompt_html into individual translation
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
- base_translation_key = ".delete_#{object_type}_modal"
|
||||
- object_ids.each do |object_id|
|
||||
- delete_modal = ConfirmModalComponent.new(id: "delete_#{object_type}_#{object_id}",
|
||||
confirm_button_text: t(".delete_#{object_type}_modal.confirmation_text"),
|
||||
cancel_button_text: t(".delete_#{object_type}_modal.cancellation_text"),
|
||||
confirm_button_text: t("#{base_translation_key}.confirmation_text"),
|
||||
cancel_button_text: t("#{base_translation_key}.cancellation_text"),
|
||||
confirm_reflexes: nil,
|
||||
confirm_button_class: :red,
|
||||
controller: "products",
|
||||
@@ -9,6 +10,8 @@
|
||||
controller_data_values: {"current-id": object_id},
|
||||
)
|
||||
= render delete_modal do
|
||||
.margin-bottom-30
|
||||
= t(".delete_#{object_type}_modal.prompt_html")
|
||||
%h2.margin-bottom-20{style:'color: black'}
|
||||
= t("#{base_translation_key}.heading")
|
||||
%p
|
||||
= t("#{base_translation_key}.prompt")
|
||||
.margin-bottom-30
|
||||
|
||||
@@ -818,11 +818,13 @@ en:
|
||||
loading: Loading your products
|
||||
delete_modals:
|
||||
delete_product_modal:
|
||||
prompt_html: "<h2 style='color: black'>Delete product</h2> <br>This will permanently remove it from your list."
|
||||
heading: "Delete product"
|
||||
prompt: "This will permanently remove it from your list."
|
||||
confirmation_text: "Delete product"
|
||||
cancellation_text: "Keep product"
|
||||
delete_variant_modal:
|
||||
prompt_html: "<h2 style='color: black'>Delete variant</h2> <br>This will permanently remove it from your list."
|
||||
heading: "Delete variant"
|
||||
prompt: "This will permanently remove it from your list."
|
||||
confirmation_text: "Delete variant"
|
||||
cancellation_text: "Keep variant"
|
||||
sort:
|
||||
|
||||
Reference in New Issue
Block a user