Skip to content

Commit

Permalink
fixded rtl bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Jan 31, 2024
1 parent 7e4d344 commit 631a13a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SMS_USER=""
SMS_PASS=""
SMS_NUMBER=""

AWS_ACCESS_KEY_ID=
AWS_ACCESS_KEY_ID=O
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
Expand All @@ -65,3 +65,4 @@ PAY_GATWAY=zarinpal

THUMBNAIL_SIZE=600x600
XLANG=false
XLANG_MAIN=en
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

'locale' => 'fa',
'xlang' => env('XLANG',false),
'xlang_main' => env('XLANG_MAIN','en'),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$lang = \App\Models\Xlang::where('is_default',true)->first();
@endphp
var isRtl = false;
@if($lang !== null && $lang->rtl)
@if($lang !== null && $lang->rtl || config('app.xlang_main') == 'fa' || config('app.xlang_main') == 'ar')
isRtl = true;
@endif
</script>
Expand Down

0 comments on commit 631a13a

Please sign in to comment.