多语言

This commit is contained in:
sl 2022-08-18 15:39:00 +08:00
parent 945d3cb7e3
commit cd096c6cf2
4 changed files with 21 additions and 15 deletions

View File

@ -44,6 +44,12 @@ return [
'order' => [
'index' => '订单列表',
'order_completed' => '已确认收货',
'order_details' => '订单详情',
'amount' => '金额',
'state' => '状态',
'operate' => '操作',
'order_number' => '订单号',
'check' => '查看',
],
'addresses' => [

View File

@ -12,10 +12,10 @@
return [
'index' => '用户登录与注册',
'Home' => '首页',
'Library' => '个人中心',
'Login' => '登录',
'Already' => '已经是我们的客户了?',
'home' => '首页',
'library' => '个人中心',
'login' => '登录',
'already' => '已经是我们的客户了?',
'description' => '已经是我们的客户了?',
'email' => '邮件',
'email_address' => '邮件地址',
@ -23,7 +23,7 @@ return [
'forget_password' => '忘记密码',
'login' => '登录',
'new' => '新账号',
'not_Already' => '还不是我们的注册客户?',
'not_already' => '还不是我们的注册客户?',
'confirm_password' => '确认密码',
'register' => '注册',
'enter_password' => '请输入密码',

View File

@ -20,10 +20,10 @@
<div class="card">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules">
<div class="login-item-header card-header">
<h6 class="text-uppercase mb-0">{{ __('shop/login.Login') }}</h6>
<h6 class="text-uppercase mb-0">{{ __('shop/login.login') }}</h6>
</div>
<div class="card-body">
<p class="lead">{{ __('shop/login.Already') }}</p>
<p class="lead">{{ __('shop/login.already') }}</p>
<p class="text-muted">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit
amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
@ -52,7 +52,7 @@
<h6 class="text-uppercase mb-0">{{ __('shop/login.new') }}</h6>
</div>
<div class="card-body">
<p class="lead">{{ __('shop/login.not_Already') }}</p>
<p class="lead">{{ __('shop/login.not_already') }}</p>
<p class="text-muted">With registration with us new world of fashion, fantastic discounts and much more opens to
you! The whole process will not take you more than a minute!</p>
<p class="text-muted">If you have any questions, please feel free to <a href="/contact">contact us</a>, our

View File

@ -16,16 +16,16 @@
<div class="col-12 col-md-9">
<div class="card mb-4 account-card order-wrap">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="card-title">我的订单</h5>
<h5 class="card-title">{{ __('shop/account.order.index') }}</h5>
</div>
<div class="card-body">
<table class="table ">
<thead>
<tr>
<th>订单详情</th>
<th>金额</th>
<th>状态</th>
<th class="text-end">操作</th>
<th>{{ __('shop/account.order.order_details') }}</th>
<th>{{ __('shop/account.order.amount') }}</th>
<th>{{ __('shop/account.order.state') }}</th>
<th class="text-end">{{ __('shop/account.order.operate') }}</th>
</tr>
</thead>
@foreach ($orders as $order)
@ -34,7 +34,7 @@
<tr class="head-tr">
<td colspan="4">
<span class="order-created me-4">{{ $order->created_at }}</span>
<span class="order-number">订单号{{ $order->number }}</span>
<span class="order-number">{{ __('shop/account.order.order_number') }}{{ $order->number }}</span>
</td>
</tr>
@foreach ($order->orderProducts as $product)
@ -52,7 +52,7 @@
<td rowspan="{{ $loop->count }}">{{ $order->total }}</td>
<td rowspan="{{ $loop->count }}">{{ $order->status }}</td>
<td rowspan="{{ $loop->count }}" class="text-end">
<a href="{{ shop_route('account.order.show', ['number' => $order->number]) }}" class="btn btn-outline-secondary btn-sm">查看</a>
<a href="{{ shop_route('account.order.show', ['number' => $order->number]) }}" class="btn btn-outline-secondary btn-sm">{{ __('shop/account.order.check') }}</a>
</td>
@endif
</tr>