We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91018ba commit 4e3684aCopy full SHA for 4e3684a
modules/backend/widgets/form/partials/_field_dropdown.php
@@ -1,5 +1,5 @@
1
<?php
2
-$fieldOptions = $field->options();
+ $fieldOptions = $field->options();
3
?>
4
5
<!-- Dropdown -->
@@ -25,6 +25,11 @@
25
if ($field->placeholder) {
26
$options['data-placeholder'] = e(trans($field->placeholder));
27
}
28
+ foreach ($fieldOptions as $key => &$value) {
29
+ if (is_string($value) && str_contains($value, '::')) {
30
+ $value = e(trans($value));
31
+ }
32
33
34
<?= Form::select(
35
name: $field->getName(),
0 commit comments