Translate Inspector option titles
This commit is contained in:
parent
1089d8e763
commit
c04b7faecc
|
|
@ -1,5 +1,6 @@
|
||||||
<?php namespace Backend\Traits;
|
<?php namespace Backend\Traits;
|
||||||
|
|
||||||
|
use Lang;
|
||||||
use Request;
|
use Request;
|
||||||
use ApplicationException;
|
use ApplicationException;
|
||||||
|
|
||||||
|
|
@ -62,7 +63,7 @@ trait InspectableContainer
|
||||||
*/
|
*/
|
||||||
$optionsArray = [];
|
$optionsArray = [];
|
||||||
foreach ((array) $options as $value => $title) {
|
foreach ((array) $options as $value => $title) {
|
||||||
$optionsArray[] = ['value' => $value, 'title' => $title];
|
$optionsArray[] = ['value' => $value, 'title' => Lang::get($title)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue