插件多语言

This commit is contained in:
pushuo 2022-09-01 14:04:31 +08:00
parent c7fc8937b1
commit 9d35dee8de
5 changed files with 8 additions and 6 deletions

View File

@ -52,7 +52,7 @@ class SettingRepo
{
return [
'name' => 'status',
'label' => '是否开启',
'label' => trans('common.whether_open'),
'type' => 'bool',
'required' => true,
];

View File

@ -12,17 +12,17 @@
return [
[
'name' => 'type',
'label' => trans('FlatShipping::common.flat_shipping'),
'label_key' => 'common.flat_shipping',
'type' => 'select',
'options' => [
['value' => 'fixed', 'label' => '固定运费'],
['value' => 'percent', 'label' => '百分比']
['value' => 'fixed', 'label_key' => 'common.flat_shipping'],
['value' => 'percent', 'label_key' => 'common.percentage']
],
'required' => true,
],
[
'name' => 'value',
'label' => '运费值',
'label_key' => 'common.shipping_value',
'type' => 'string',
'required' => true,
]

View File

@ -62,7 +62,7 @@
@endforeach
<x-admin::form.row title="">
<button type="submit" class="btn btn-primary btn-lg mt-4">提交</button>
<button type="submit" class="btn btn-primary btn-lg mt-4">{{ __('common.submit') }}</button>
</x-admin::form.row>
</form>
</div>

View File

@ -65,6 +65,7 @@ return [
'select_all' => 'Select All',
'sign_out' => 'Sign Out',
'menu' => 'Menu',
'whether_open' => 'Whether to open',
'id' => 'ID',
'created_at' => 'Created At',

View File

@ -64,6 +64,7 @@ return [
'select_all' => '全选',
'sign_out' => '退出登录',
'menu' => '菜单',
'whether_open' => '是否开启',
'id' => 'ID',
'created_at' => '创建时间',