Skip to content

Commit ac3c5b2

Browse files
committed
Translate validation attributes
1 parent d1755a9 commit ac3c5b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/forms/src/Components/Component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ public function getValidationAttributes()
170170

171171
if (property_exists($this, 'name')) {
172172
if (property_exists($this, 'label')) {
173-
$label = Str::lower($this->label);
173+
$label = Str::lower(__($this->label));
174174

175175
$attributes[$this->name] = $label;
176176
}
177177

178178
if (property_exists($this, 'validationAttribute') && $this->validationAttribute !== null) {
179-
$attributes[$this->name] = $this->validationAttribute;
179+
$attributes[$this->name] = __($this->validationAttribute);
180180
}
181181
}
182182

0 commit comments

Comments
 (0)