Skip to content

Commit 3862ba0

Browse files
authoredDec 17, 2020
Merge pull request #528 from avored/developed
Developed
2 parents 953f119 + 1063fbf commit 3862ba0

File tree

11 files changed

+239619
-7
lines changed

11 files changed

+239619
-7
lines changed
 

‎app/Providers/AppServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Barryvdh\Debugbar\Facade;
1111
use Barryvdh\Debugbar\ServiceProvider as DebugbarServiceProvider;
1212
use Illuminate\Foundation\AliasLoader;
13+
use Illuminate\Support\Facades\Cache;
1314

1415
class AppServiceProvider extends ServiceProvider
1516
{

‎public/vendor/avored/css/app.css

+106,125-1
Large diffs are not rendered by default.

‎public/vendor/avored/js/app.js

+120,571-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/vendor/avored/js/avored.js

+12,620-2
Large diffs are not rendered by default.

‎resources/lang/fa/auth.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Authentication Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used during authentication for various
11+
| messages that we need to display to the user. You are free to modify
12+
| these language lines according to your application's requirements.
13+
|
14+
*/
15+
16+
'failed' => 'اطلاعات کاربری معتبر نیست',
17+
'throttle' => 'تعداد زیادی امتحان اشتباه داشتید :seconds ثانیه دیگر دوباره امتحان کنید.',
18+
19+
];

‎resources/lang/fa/avored.php

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| AvoRed Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used during avored for various
11+
| messages that we need to display to the user. You are free to modify
12+
| these language lines according to your application's requirements.
13+
|
14+
*/
15+
16+
'fields' => [
17+
'email' => 'آدرس ایمیل',
18+
'password' => 'رمز عبور',
19+
'first_name' => 'نام',
20+
'last_name' => 'نام خانوادگی',
21+
'password_confirmation' => 'تایید رمز عبور',
22+
'image' => 'تصویر',
23+
'address2' => 'آدرس دوم',
24+
'company_name' => 'نام شرکت',
25+
'phone' => 'شماره تلفن',
26+
'address1' => 'آدرس اول',
27+
'postcode' => 'کد پستی',
28+
'state' => 'منطقه',
29+
'city' => 'شهر',
30+
'country_id' => 'کشور'
31+
],
32+
'properties' => 'مشخصات',
33+
'my_wishlist' => 'علاقه مندی های من',
34+
'customer_wishlists' => 'علاقه مندی ها',
35+
'not_available' => 'موجود نیست',
36+
'add_to_cart' => 'اضافه به سبد',
37+
'add_to_wishlist' => 'اضافه به علاقه مندی',
38+
'remove_to_wishlist' => 'حذف از علاقه مندی',
39+
'availability' => 'موجودی مجموع ',
40+
'home' => 'خانه',
41+
'reset_password' => 'جایگزینی رمز عبور',
42+
'login' => 'ورود',
43+
'password_update' => 'تغییر رمز عبور',
44+
'user_dashboard' => 'داشبورد کاربری',
45+
'show_order' => 'ترتیب نمایش',
46+
'cart' => 'سبد خرید',
47+
'page' => 'صفحه',
48+
'product' => 'محصول',
49+
'qty' => 'تعداد',
50+
'unit_price' => 'قیمت واحد',
51+
'total_price' => 'قیمت کل',
52+
'subtotal' => 'Sub Total',
53+
'discount_coupon' => 'کوپن تخفیف',
54+
'discount' => 'تخفیف',
55+
'total' => 'مجموع',
56+
'checkout' => 'تسویه',
57+
'user_personal_info' => 'مشخصات کاربر',
58+
'user_shipping_address' => 'آدرس ارسال به کاربر',
59+
'user' => 'کاربر',
60+
'billing_address' => 'آدرس کامل',
61+
'btn' => [
62+
'sign_in' => 'ورود',
63+
'register' => 'ثبت نام',
64+
'save' => 'ذخیره',
65+
'cancel' => 'انصراف',
66+
'create' => 'ایجاد',
67+
'apply' => 'اعمال',
68+
'place_order' => 'ترتیب'
69+
],
70+
'pages' => [
71+
72+
'login' => [
73+
'title' => 'به حساب خود وارد شوید',
74+
'remember_me' => 'مرا به خاطر بسپار',
75+
'forgot_password' => 'نام کاربری را فراموش کردید؟'
76+
],
77+
'register' => [
78+
'title' => 'اطلاعات خود را ثبت کنید',
79+
],
80+
'account_dashboard' => [
81+
'title' => 'داشبورد'
82+
],
83+
'home' => [
84+
'weekend' => 'هفته شگفت انگیز'
85+
],
86+
87+
],
88+
89+
];

‎resources/lang/fa/pagination.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Pagination Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are used by the paginator library to build
11+
| the simple pagination links. You are free to change them to anything
12+
| you want to customize your views to better match your application.
13+
|
14+
*/
15+
16+
'previous' => '&laquo; قبلی',
17+
'next' => 'بعدی &raquo;',
18+
19+
];

‎resources/lang/fa/passwords.php

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Password Reset Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines are the default lines which match reasons
11+
| that are given by the password broker for a password update attempt
12+
| has failed, such as for an invalid token or invalid new password.
13+
|
14+
*/
15+
16+
'password' => 'رمز عبور حداقل باید ۸ کارکتر باشید و با رمز دیگر برابر باشد',
17+
'reset' => 'رمز عبور شما تغییر یافت',
18+
'sent' => 'لینک تغییر رمز عبور برای شما ارسال شد',
19+
'token' => 'توکن تغییر رمز عبور منقضی شده است',
20+
'user' => "کاربری با این آدرس ایمیل یافت نشد",
21+
22+
];

‎resources/lang/fa/validation.php

+151
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Validation Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines contain the default error messages used by
11+
| the validator class. Some of these rules have multiple versions such
12+
| as the size rules. Feel free to tweak each of these messages here.
13+
|
14+
*/
15+
'accepted' => ':attribute باید مورد قبول باشد',
16+
'active_url' => ':attribute یک مسیر مورد تایید نمیباشد',
17+
'after' => ':attribute باید یک تاریخ بعد از:date باشد.',
18+
'after_or_equal' => ':attribute باید یک تاریخ بعد یا برابر با:date باشد',
19+
'alpha' => ':attribute باید فقط شامل حروف باشد',
20+
'alpha_dash' => ':attribute باید فقط شامل حروف و اعداد و خط تیره و زیر خط باشد',
21+
'alpha_num' => ':attribute فقط باید شامل حروف و اعداد باشد',
22+
'array' => ':attribute باید یک آرایه باشد',
23+
'before' => ':attribute باید یک تاریخ قبل از :date باشد.',
24+
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
25+
'before_or_equal' => ':attribute باید یک تاریخ قبل یا برابر با :date باشد.',
26+
'between' => [
27+
'numeric' => ':attribute باید ما بین :min و :max باشد.',
28+
'file' => ':attribute باید مابین :min و :max کیلو بایت باشد.',
29+
'string' => ':attribute باید مابین :min و :max کارکتر باشد.',
30+
'array' => ':attribute باید مابین :min و :max آیتم باشد.',
31+
],
32+
'boolean' => ':attribute مقادیر باید صحیح یا غلط باشند',
33+
'confirmed' => ':attribute مطابقت برقرار نمی باشد',
34+
'date' => ':attribute یک تاریخ معتبر نمی باشد',
35+
'date_equals' => ':attribute باید یک تاریخ برابر با :date باشد.',
36+
'date_format' => ':attribute با این فرمت :format مطابقت ندارد.',
37+
'different' => ':attribute و :other باید تفاوت داشته باشند.',
38+
'digits' => ':attribute باید این اعداد باشد :digits',
39+
'digits_between' => ':attribute باید مابین :min و :max باشد.',
40+
'dimensions' => ':attribute از ابعاد اشتباه برخوردار است',
41+
'distinct' => ':attribute مقدار تکراری دارد',
42+
'email' => ':attribute باید یک آدرس ایمیل معتبر باشد',
43+
'ends_with' => ':attribute باید با یکی از این مقادیر پایان یابد: :values',
44+
'exists' => ':attribute انتخاب شده اشتباه است.',
45+
'file' => ':attribute باید یک فایل باشد.',
46+
'filled' => ':attribute باید یک مقدار داشته باشد',
47+
'gt' => [
48+
'numeric' => 'The :attribute must be greater than :value.',
49+
'numeric' => ':attribute باید بزرگتر تر از :value باشد.',
50+
'file' => ':attribute باید بزرگتر از :value کیلوبایت.',
51+
'string' => 'The :attribute must be greater than :value characters.',
52+
'array' => 'The :attribute must have more than :value items.',
53+
],
54+
'gte' => [
55+
'numeric' => 'The :attribute must be greater than or equal :value.',
56+
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
57+
'string' => 'The :attribute must be greater than or equal :value characters.',
58+
'array' => 'The :attribute must have :value items or more.',
59+
],
60+
'image' => 'The :attribute must be an image.',
61+
'in' => 'The selected :attribute is invalid.',
62+
'in_array' => 'The :attribute field does not exist in :other.',
63+
'integer' => 'The :attribute must be an integer.',
64+
'ip' => 'The :attribute must be a valid IP address.',
65+
'ipv4' => 'The :attribute must be a valid IPv4 address.',
66+
'ipv6' => 'The :attribute must be a valid IPv6 address.',
67+
'json' => 'The :attribute must be a valid JSON string.',
68+
'lt' => [
69+
'numeric' => 'The :attribute must be less than :value.',
70+
'file' => 'The :attribute must be less than :value kilobytes.',
71+
'string' => 'The :attribute must be less than :value characters.',
72+
'array' => 'The :attribute must have less than :value items.',
73+
],
74+
'lte' => [
75+
'numeric' => 'The :attribute must be less than or equal :value.',
76+
'file' => 'The :attribute must be less than or equal :value kilobytes.',
77+
'string' => 'The :attribute must be less than or equal :value characters.',
78+
'array' => 'The :attribute must not have more than :value items.',
79+
],
80+
'max' => [
81+
'numeric' => 'The :attribute may not be greater than :max.',
82+
'file' => 'The :attribute may not be greater than :max kilobytes.',
83+
'string' => 'The :attribute may not be greater than :max characters.',
84+
'array' => 'The :attribute may not have more than :max items.',
85+
],
86+
'mimes' => 'The :attribute must be a file of type: :values.',
87+
'mimetypes' => 'The :attribute must be a file of type: :values.',
88+
'min' => [
89+
'numeric' => 'The :attribute must be at least :min.',
90+
'file' => 'The :attribute must be at least :min kilobytes.',
91+
'string' => 'The :attribute must be at least :min characters.',
92+
'array' => 'The :attribute must have at least :min items.',
93+
],
94+
'not_in' => 'The selected :attribute is invalid.',
95+
'not_regex' => 'The :attribute format is invalid.',
96+
'numeric' => 'The :attribute must be a number.',
97+
'present' => 'The :attribute field must be present.',
98+
'regex' => 'The :attribute format is invalid.',
99+
'required' => 'The :attribute field is required.',
100+
'required_if' => 'The :attribute field is required when :other is :value.',
101+
'required_unless' => 'The :attribute field is required unless :other is in :values.',
102+
'required_with' => 'The :attribute field is required when :values is present.',
103+
'required_with_all' => 'The :attribute field is required when :values are present.',
104+
'required_without' => 'The :attribute field is required when :values is not present.',
105+
'required_without_all' => 'The :attribute field is required when none of :values are present.',
106+
'same' => 'The :attribute and :other must match.',
107+
'size' => [
108+
'numeric' => 'The :attribute must be :size.',
109+
'file' => 'The :attribute must be :size kilobytes.',
110+
'string' => 'The :attribute must be :size characters.',
111+
'array' => 'The :attribute must contain :size items.',
112+
],
113+
'starts_with' => 'The :attribute must start with one of the following: :values',
114+
'string' => 'The :attribute must be a string.',
115+
'timezone' => 'The :attribute must be a valid zone.',
116+
'unique' => 'The :attribute has already been taken.',
117+
'uploaded' => 'The :attribute failed to upload.',
118+
'url' => 'The :attribute format is invalid.',
119+
'uuid' => 'The :attribute must be a valid UUID.',
120+
121+
/*
122+
|--------------------------------------------------------------------------
123+
| Custom Validation Language Lines
124+
|--------------------------------------------------------------------------
125+
|
126+
| Here you may specify custom validation messages for attributes using the
127+
| convention "attribute.rule" to name the lines. This makes it quick to
128+
| specify a specific custom language line for a given attribute rule.
129+
|
130+
*/
131+
132+
'custom' => [
133+
'attribute-name' => [
134+
'rule-name' => 'custom-message',
135+
],
136+
],
137+
138+
/*
139+
|--------------------------------------------------------------------------
140+
| Custom Validation Attributes
141+
|--------------------------------------------------------------------------
142+
|
143+
| The following language lines are used to swap our attribute placeholder
144+
| with something more reader friendly such as "E-Mail Address" instead
145+
| of "email". This simply helps us make our message more expressive.
146+
|
147+
*/
148+
149+
'attributes' => [],
150+
151+
];

‎resources/views/category/card/product.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<input type="hidden" name="slug" value="{{ $product->slug }}" />
2323
<input type="hidden" name="qty" value="1" />
2424
<button type="submit" class="px-3 py-1 bg-red-500 text-white text-sm font-semibold rounded">
25-
Add to cart
25+
{{__('avored.add_to_cart')}}
2626
</button>
2727
</form>
2828
<div>

‎resources/views/product/type/variable.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<a-input-number :min="1" :default-value="1" @change="changeQty" name="qty"></a-input-number>
8686
<a-button html-type="submit" type="primary">
8787
<a-icon type="shopping_cart"></a-icon>
88-
Add To Cart
88+
{{__('avored.add_to_cart')}}
8989
</a-button>
9090
<input type="hidden" name="slug" value="{{ $product->slug }}" />
9191
<input type="hidden" name="qty" v-model="qty" />

0 commit comments

Comments
 (0)
Please sign in to comment.