Skip to content

Commit

Permalink
feat: add persian (farsi) language
Browse files Browse the repository at this point in the history
  • Loading branch information
ingen2 committed Jul 4, 2024
1 parent 2171f0f commit b6a98b4
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 14 deletions.
24 changes: 24 additions & 0 deletions Modules/Category/lang/fa/categories.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

return [

'name' => 'نام',
'slug' => 'نامک',
'created_by_alias' => 'نام مستعار نویسنده',
'intro' => 'معرفی',
'content' => 'محتوا',
'featured_image' => 'تصویر ویژه',
'category_id' => 'دسته',
'type' => 'نوع',
'is_featured' => 'ویژه است',
'tags' => 'برچسب ها',
'status' => 'وضعیت',
'published_at' => 'منتشر شده در',

'meta_title' => 'عنوان متا',
'meta_keywords' => 'کلمات کلیدی متا',
'meta_description' => 'توضیحات متا',
'meta_og_image' => 'تصویر متا',
'meta_og_url' => 'لینک متا',
'order' => 'ترتیب',
];
15 changes: 15 additions & 0 deletions Modules/Category/lang/fa/text.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [

'name' => 'نام',
'slug' => 'نامک',
'description' => 'توضیحات',
'status' => 'وضعیت',
'created_by' => 'ایجاد شده توسط',
'updated_at' => 'آخرین ویرایش در',
'updated_by' => 'ویرایش شده توسط',
'deleted_by' => 'حذف شده توسط',
'action' => 'عملیات',

];
25 changes: 25 additions & 0 deletions Modules/Post/lang/fa/posts.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

return [

'name' => 'نام',
'slug' => 'نامک',
'created_by_alias' => 'نام مستعار نویسنده',
'intro' => 'معرفی',
'content' => 'محتوا',
'image' => 'تصویر',
'category_id' => 'دسته بندی',
'type' => 'نوع',
'is_featured' => 'ویژه است',
'tags' => 'برچسب ها',
'status' => 'وضعیت',
'published_at' => 'منتشر شده در',

'meta_title' => 'عنوان متا',
'meta_keywords' => 'کلمات کلیدی متا',
'meta_description' => 'توضیحات متا',
'meta_og_image' => 'تصویر متا',
'meta_og_url' => 'لینک متا',
'order' => 'ترتیب',

];
15 changes: 15 additions & 0 deletions Modules/Post/lang/fa/text.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [

'name' => 'نام',
'slug' => 'نامک',
'description' => 'توضیحات',
'status' => 'وضعیت',
'created_by' => 'ایجاد شده توسط',
'updated_at' => 'آخرین ویرایش در',
'updated_by' => 'ویرایش شده توسط',
'deleted_by' => 'حذف شده توسط',
'action' => 'عملیات',

];
15 changes: 15 additions & 0 deletions Modules/Tag/lang/fa/text.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

return [

'name' => 'نام',
'slug' => 'نامک',
'description' => 'توضیحات',
'status' => 'وضعیت',
'created_by' => 'ایجاد شده توسط',
'updated_at' => 'آخرین ویرایش در',
'updated_by' => 'ویرایش شده توسط',
'deleted_by' => 'حذف شده توسط',
'action' => 'عملیات',

];
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'ar' => 'العربی (AR)',
'bn' => 'বাংলা (BN)',
'en' => 'English (EN)',
'fa' => 'فارسی (FA)',
'vi' => 'Vietnamese (VI)',
],

Expand Down
1 change: 1 addition & 0 deletions lang/fa/labels.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
'password_confirmation' => 'تایید رمز عبور',
'confirmed' => 'تایید شد',
'active' => 'فعال',
'email_credentials' => 'اعتبار سنجی ایمیل',
'roles' => 'نقش ها',
'permissions' => 'اجازه ها',
'social' => 'اجتماعی',
Expand Down
42 changes: 28 additions & 14 deletions lang/fa/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

'accepted' => ':attribute باید پذیرفته شده باشد.',
'active_url' => 'آدرس :attribute معتبر نیست.',
'accepted_if' => 'زمانی که :other معادل :value باشد باید :attribute پذیرفته شود.',
'after' => ':attribute باید تاریخی بعد از :date باشد.',
'after_or_equal' => ':attribute باید تاریخی بعد از :date، یا مطابق با آن باشد.',
'alpha' => ':attribute باید فقط حروف الفبا باشد.',
Expand All @@ -23,37 +24,41 @@
'before' => ':attribute باید تاریخی قبل از :date باشد.',
'before_or_equal' => ':attribute باید تاریخی قبل از :date، یا مطابق با آن باشد.',
'between' => [
'numeric' => ':attribute باید بین :min و :max باشد.',
'array' => ':attribute باید بین :min و :max آیتم باشد.',
'file' => ':attribute باید بین :min و :max کیلوبایت باشد.',
'numeric' => ':attribute باید بین :min و :max باشد.',
'string' => ':attribute باید بین :min و :max کاراکتر باشد.',
'array' => ':attribute باید بین :min و :max آیتم باشد.',
],
'boolean' => 'فیلد :attribute فقط می‌تواند true و یا false باشد.',
'confirmed' => ':attribute با فیلد تکرار مطابقت ندارد.',
'date' => ':attribute یک تاریخ معتبر نیست.',
'current_password' => 'رمز عبور معتبر نیست.',
'date_equals' => ':attribute باید یک تاریخ برابر با تاریخ :date باشد.',
'date_format' => ':attribute با الگوی :format مطابقت ندارد.',
'different' => ':attribute و :other باید از یکدیگر متفاوت باشند.',
'declined' => ':attribute نباید پذیرفته شود.',
'declined_if' => ':attribute نباید پذیرفته شود زمانی که :other معادل :value است.',
'digits' => ':attribute باید :digits رقم باشد.',
'digits_between' => ':attribute باید بین :min و :max رقم باشد.',
'dimensions' => 'ابعاد تصویر :attribute قابل قبول نیست.',
'distinct' => 'فیلد :attribute مقدار تکراری دارد.',
'email' => ':attribute باید یک ایمیل معتبر باشد.',
'ends_with' => 'فیلد :attribute باید با یکی از مقادیر زیر خاتمه یابد: :values',
'exists' => ':attribute انتخاب شده، معتبر نیست.',
'enum' => ':attribute انتخاب شده معتبر نیست',
'file' => ':attribute باید یک فایل معتبر باشد.',
'filled' => 'فیلد :attribute باید مقدار داشته باشد.',
'gt' => [
'numeric' => ':attribute باید بزرگتر از :value باشد.',
'array' => ':attribute باید بیشتر از :value آیتم داشته باشد.',
'file' => ':attribute باید بزرگتر از :value کیلوبایت باشد.',
'numeric' => ':attribute باید بزرگتر از :value باشد.',
'string' => ':attribute باید بیشتر از :value کاراکتر داشته باشد.',
'array' => ':attribute باید بیشتر از :value آیتم داشته باشد.',
],
'gte' => [
'numeric' => ':attribute باید بزرگتر یا مساوی :value باشد.',
'array' => ':attribute باید بیشتر یا مساوی :value آیتم داشته باشد.',
'file' => ':attribute باید بزرگتر یا مساوی :value کیلوبایت باشد.',
'numeric' => ':attribute باید بزرگتر یا مساوی :value باشد.',
'string' => ':attribute باید بیشتر یا مساوی :value کاراکتر داشته باشد.',
'array' => ':attribute باید بیشتر یا مساوی :value آیتم داشته باشد.',
],
'image' => ':attribute باید یک تصویر معتبر باشد.',
'in' => ':attribute انتخاب شده، معتبر نیست.',
Expand All @@ -64,22 +69,23 @@
'ipv6' => ':attribute باید یک آدرس معتبر از نوع IPv6 باشد.',
'json' => 'فیلد :attribute باید یک رشته از نوع JSON باشد.',
'lt' => [
'numeric' => ':attribute باید کوچکتر از :value باشد.',
'array' => ':attribute باید کمتر از :value آیتم داشته باشد.',
'file' => ':attribute باید کوچکتر از :value کیلوبایت باشد.',
'numeric' => ':attribute باید کوچکتر از :value باشد.',
'string' => ':attribute باید کمتر از :value کاراکتر داشته باشد.',
'array' => ':attribute باید کمتر از :value آیتم داشته باشد.',
],
'lte' => [
'numeric' => ':attribute باید کوچکتر یا مساوی :value باشد.',
'array' => ':attribute باید کمتر یا مساوی :value آیتم داشته باشد.',
'file' => ':attribute باید کوچکتر یا مساوی :value کیلوبایت باشد.',
'numeric' => ':attribute باید کوچکتر یا مساوی :value باشد.',
'string' => ':attribute باید کمتر یا مساوی :value کاراکتر داشته باشد.',
'array' => ':attribute باید کمتر یا مساوی :value آیتم داشته باشد.',
],
'mac_address' => ':attribute باید یک مک ادرس معتبر باشد',
'max' => [
'numeric' => ':attribute نباید بزرگتر از :max باشد.',
'array' => ':attribute نباید بیشتر از :max آیتم داشته باشد.',
'file' => ':attribute نباید بزرگتر از :max کیلوبایت باشد.',
'numeric' => ':attribute نباید بزرگتر از :max باشد.',
'string' => ':attribute نباید بیشتر از :max کاراکتر داشته باشد.',
'array' => ':attribute نباید بیشتر از :max آیتم داشته باشد.',
],
'mimes' => 'فرمت‌های معتبر فایل عبارتند از: :values.',
'mimetypes' => 'فرمت‌های معتبر فایل عبارتند از: :values.',
Expand All @@ -95,8 +101,13 @@
'numeric' => ':attribute باید عدد یا رشته‌ای از اعداد باشد.',
'password' => 'رمزعبور اشتباه است.',
'present' => 'فیلد :attribute باید در پارامترهای ارسالی وجود داشته باشد.',
'prohibited' => 'فیلد :attribute ممنوع است.',
'prohibited_if' => 'فیلد :attribute ممنوع است، زمانی که :other معادل :value است.',
'prohibited_unless' => 'فیلد :attribute ممنوع است، مگر اینکه :other در :values باشد.',
'prohibits' => 'فیلد :attribute حضور :other را ممنوع می کند.',
'regex' => 'فرمت :attribute معتبر نیست.',
'required' => 'فیلد :attribute الزامی است.',
'required_array_keys' => 'فیلد :attribute باید حاوی ورودی های برای :values باشد',
'required_if' => 'هنگامی که :other برابر با :value است، فیلد :attribute الزامی است.',
'required_unless' => 'فیلد :attribute الزامی است، مگر آنکه :other در :values موجود باشد.',
'required_with' => 'در صورت وجود فیلد :values، فیلد :attribute نیز الزامی است.',
Expand All @@ -105,10 +116,10 @@
'required_without_all' => 'در صورت عدم وجود هر یک از فیلدهای :values، فیلد :attribute الزامی است.',
'same' => ':attribute و :other باید همانند هم باشند.',
'size' => [
'numeric' => ':attribute باید برابر با :size باشد.',
'array' => ':attribute باید شامل :size آیتم باشد.',
'file' => ':attribute باید برابر با :size کیلوبایت باشد.',
'numeric' => ':attribute باید برابر با :size باشد.',
'string' => ':attribute باید برابر با :size کاراکتر باشد.',
'array' => ':attribute باید شامل :size آیتم باشد.',
],
'starts_with' => ':attribute باید با یکی از این ها شروع شود: :values',
'string' => 'فیلد :attribute باید متن باشد.',
Expand All @@ -130,6 +141,9 @@
*/

'custom' => [
'attribute-name' => [
'rule-name' => 'پیام اختصاصی',
],
],

/*
Expand Down

0 comments on commit b6a98b4

Please sign in to comment.