search string boolen translations..

This commit is contained in:
Cüneyt Şentürk 2021-01-11 17:42:49 +03:00
parent d9047f2d45
commit 738031a853
2 changed files with 9 additions and 3 deletions

View File

@ -168,11 +168,11 @@ class SearchString extends Component
$values = [ $values = [
[ [
'key' => 0, 'key' => 0,
'value' => trans('general.no'), 'value' => empty($options['translations']) ? trans('general.no') : trans($options['translations'][0]),
], ],
[ [
'key' => 1, 'key' => 1,
'value' => trans('general.yes'), 'value' => empty($options['translations']) ? trans('general.yes') : trans($options['translations'][1]),
], ],
]; ];
} else if ($search = request()->get('search', false)) { } else if ($search = request()->get('search', false)) {

View File

@ -251,7 +251,13 @@ return [
'enabled' => ['boolean' => true], 'enabled' => ['boolean' => true],
'precision', 'precision',
'symbol', 'symbol',
'symbol_first' => ['boolean' => true], 'symbol_first' => [
'boolean' => true,
'translations' => [
0 => 'currencies.symbol.after',
1 => 'currencies.symbol.before',
]
],
'decimal_mark', 'decimal_mark',
'thousands_separator', 'thousands_separator',
], ],