Skip to content

Commit

Permalink
[AttributeBundle] Add validation on locale of translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojdylak committed Nov 8, 2023
1 parent 96aee9f commit 0bc4efe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
<option name="groups">sylius</option>
</constraint>
</property>
<property name="locale">
<constraint name="NotBlank">
<option name="groups">sylius</option>
<option name="message">sylius.attribute.locale.not_blank</option>
</constraint>
<constraint name="Locale">
<option name="groups">sylius</option>
</constraint>
</property>
</class>
</constraint-mapping>
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ sylius:
max_length: Attribute presentation must not be longer than 1 character.|Attribute presentation must not be longer than {{ limit }} characters.
type:
unregistered: The attribute type "%type%" is not registered.
locale:
not_blank: Please enter the locale.
attribute_value:
attribute:
not_blank: Please select attribute.
Expand Down

0 comments on commit 0bc4efe

Please sign in to comment.