From 7866d0adc088f75ada682bbd003aeac360787cec Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Mon, 22 Aug 2022 19:29:17 +0800 Subject: [PATCH] fixed rma languages --- beike/Shop/Http/Requests/ForgottenRequest.php | 2 +- beike/Shop/Http/Requests/RmaRequest.php | 10 +++++----- resources/lang/en/rma.php | 18 ++++++++++++++++++ resources/lang/zh_cn/rma.php | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 resources/lang/en/rma.php create mode 100644 resources/lang/zh_cn/rma.php diff --git a/beike/Shop/Http/Requests/ForgottenRequest.php b/beike/Shop/Http/Requests/ForgottenRequest.php index a7970d74..f1024424 100644 --- a/beike/Shop/Http/Requests/ForgottenRequest.php +++ b/beike/Shop/Http/Requests/ForgottenRequest.php @@ -31,7 +31,7 @@ class ForgottenRequest extends FormRequest public function attributes() { return [ - 'password' => '密码' + 'password' => trans('shop/forgotten.password'), ]; } } diff --git a/beike/Shop/Http/Requests/RmaRequest.php b/beike/Shop/Http/Requests/RmaRequest.php index 1d1a607c..332a4f15 100644 --- a/beike/Shop/Http/Requests/RmaRequest.php +++ b/beike/Shop/Http/Requests/RmaRequest.php @@ -45,11 +45,11 @@ class RmaRequest extends FormRequest public function attributes() { return [ - 'order_product_id' => '订单商品', - 'quantity' => '数量', - 'opened' => '已拆包装', - 'rma_reason_id' => '退换货原因', - 'type' => '售后服务类型', + 'order_product_id' => trans('rma.order_product_id'), + 'quantity' => trans('rma.quantity'), + 'opened' => trans('rma.opened'), + 'rma_reason_id' => trans('rma.rma_reason_id'), + 'type' => trans('rma.type'), ]; } } diff --git a/resources/lang/en/rma.php b/resources/lang/en/rma.php new file mode 100644 index 00000000..46cc5dbf --- /dev/null +++ b/resources/lang/en/rma.php @@ -0,0 +1,18 @@ + + * @created 2022-08-22 19:27:35 + * @modified 2022-08-22 19:27:35 + */ + +return [ + 'order_product_id' => 'Order Product ID', + 'quantity' => 'Quantity', + 'opened' => 'Opened', + 'rma_reason_id' => 'Reason ID', + 'type' => 'Type', +]; diff --git a/resources/lang/zh_cn/rma.php b/resources/lang/zh_cn/rma.php new file mode 100644 index 00000000..b4e7bcf9 --- /dev/null +++ b/resources/lang/zh_cn/rma.php @@ -0,0 +1,18 @@ + + * @created 2022-08-22 19:27:35 + * @modified 2022-08-22 19:27:35 + */ + +return [ + 'order_product_id' => '订单商品', + 'quantity' => '数量', + 'opened' => '已拆包装', + 'rma_reason_id' => '退换货原因', + 'type' => '售后服务类型', +];