Translate Inspector option titles

This commit is contained in:
Luke Towers 2019-07-12 09:42:22 -06:00 committed by GitHub
parent 1089d8e763
commit c04b7faecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php namespace Backend\Traits;
use Lang;
use Request;
use ApplicationException;
@ -62,7 +63,7 @@ trait InspectableContainer
*/
$optionsArray = [];
foreach ((array) $options as $value => $title) {
$optionsArray[] = ['value' => $value, 'title' => $title];
$optionsArray[] = ['value' => $value, 'title' => Lang::get($title)];
}
return [