Skip to content

Commit

Permalink
Change background translation path
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Sep 4, 2024
1 parent 419dfee commit 13c4edc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
7 changes: 2 additions & 5 deletions src/Form/Type/UiElement/LinksUiElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,8 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
->add('background', ChoiceType::class, [
'label' => 'monsieurbiz_ui_elements.common.fields.background',
'choices' => [
'monsieurbiz_ui_elements.ui_element.links_ui_element.fields.background.choices.light' => self::BACKGROUND_LIGHT,
'monsieurbiz_ui_elements.ui_element.links_ui_element.fields.background.choices.dark' => self::BACKGROUND_DARK,
],
'row_attr' => [
'class' => 'ui segment',
'monsieurbiz_ui_elements.common.form_choices.background.light' => self::BACKGROUND_LIGHT,
'monsieurbiz_ui_elements.common.form_choices.background.dark' => self::BACKGROUND_DARK,
],
'constraints' => [new Assert\NotBlank()],
])
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ monsieurbiz_ui_elements:
image_alignment: "Image alignment"
image_with_text: "Image with the text"
logos: "Logos"
form_choices:
background:
light: "Light"
dark: "Dark"
ui_element:
hero_ui_element:
title: "Hero Element"
Expand All @@ -26,10 +30,6 @@ monsieurbiz_ui_elements:
title: "Links Element"
description: "Collection of links"
fields:
background:
choices:
light: "Light"
dark: "Dark"
alignment:
choices:
full_width: "Full width"
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/translations/messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ monsieurbiz_ui_elements:
image_alignment: "Alignement de l'image"
image_with_text: "Image accompagnant le texte"
logos: "Logos"
form_choices:
background:
light: "Clair"
dark: "Foncé"
ui_element:
hero_ui_element:
title: "Lame Hero"
Expand All @@ -26,10 +30,6 @@ monsieurbiz_ui_elements:
title: "Lame Liens"
description: "Ensemble de liens"
fields:
background:
choices:
light: "Clair"
dark: "Foncé"
alignment:
choices:
full_width: "Pleine largeur"
Expand Down

0 comments on commit 13c4edc

Please sign in to comment.