mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lang
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Livewire\BookCase;
|
||||
|
||||
use App\Models\BookCase;
|
||||
use App\Models\User;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithFileUploads;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class Footer extends Component
|
||||
$toTranslate = Translation::query()
|
||||
->where('language_id', $language->id)
|
||||
->count();
|
||||
$toTranslate = $toTranslate > 0 ? $toTranslate : 1;
|
||||
|
||||
return view('livewire.frontend.footer', [
|
||||
'percentTranslated' => $l === 'en' ? 100 : round(($translated / $toTranslate) * 100),
|
||||
|
||||
Reference in New Issue
Block a user