订单列表页多语言

This commit is contained in:
Edward Yang 2022-08-26 17:28:55 +08:00
parent 711c62d9b7
commit 101b07cabd
3 changed files with 9 additions and 5 deletions

View File

@ -54,8 +54,8 @@
<div class="row">
<label class="filter-title"></label>
<div class="col-auto">
<button type="button" @click="search" class="btn btn-outline-primary btn-sm">筛选</button>
<button type="button" @click="resetSearch" class="btn btn-outline-secondary btn-sm">重置</button>
<button type="button" @click="search" class="btn btn-outline-primary btn-sm">{{ __('common.filter') }}</button>
<button type="button" @click="resetSearch" class="btn btn-outline-secondary btn-sm">{{ __('common.reset') }}</button>
</div>
</div>
</div>
@ -126,13 +126,13 @@
@endif
<td width="140" class="text-end">
<template v-if="item.deleted_at == ''">
<a :href="item.url_edit" class="btn btn-outline-secondary btn-sm">编辑</a>
<a :href="item.url_edit" class="btn btn-outline-secondary btn-sm">{{ __('common.edit') }}</a>
<a href="javascript:void(0)" class="btn btn-outline-danger btn-sm"
@click.prevent="deleteProduct(index)">删除</a>
@click.prevent="deleteProduct(index)">{{ __('common.delete') }}</a>
</template>
<template v-else>
<a href="javascript:void(0)" class="btn btn-outline-secondary btn-sm"
@click.prevent="restoreProduct(index)">恢复</a>
@click.prevent="restoreProduct(index)">{{ __('common.restore') }}</a>
</template>
</td>
</tr>

View File

@ -36,6 +36,8 @@ return [
'sign_out' => 'Sign Out',
'contact_us' => 'Contact us',
'input' => 'Type your search here',
'filter' => 'Filter',
'reset' => 'Reset',
'edit' => 'Edit',
'action' => 'Action',
'add' => 'Add',

View File

@ -35,6 +35,8 @@ return [
'sign_out' => '退出登录',
'contact_us' => '联系我们',
'input' => '在此处输入您的搜索',
'filter' => '筛选',
'reset' => '重置',
'edit' => '编辑',
'action' => '操作',
'add' => '添加',