diff --git a/app/Livewire/Traits/Alert.php b/app/Livewire/Traits/Alert.php index 8ce3589..f9bdf7d 100644 --- a/app/Livewire/Traits/Alert.php +++ b/app/Livewire/Traits/Alert.php @@ -12,33 +12,33 @@ trait Alert public function success(string $title = 'Done!', string $description = 'Task completed successfully.'): void { $this->dialog() - ->success($title, $description) + ->success(__($title), __($description)) ->send(); } public function error(string $title = 'Ooops!', string $description = 'Something went wrong!'): void { $this->dialog() - ->error($title, $description) + ->error(__($title), __($description)) ->send(); } public function warning(string $title = 'Ooops!', string $description = null): void { $this->dialog() - ->warning($title, $description) + ->warning(__($title), __($description)) ->send(); } public function info(string $title = 'Warning!', string $description = null): void { $this->dialog() - ->info($title, $description) + ->info(__($title), __($description)) ->send(); } public function question(string $title = 'Warning!', string $description = 'Are you sure?'): Dialog { - return $this->dialog()->question($title, $description); + return $this->dialog()->question(__($title), __($description)); } } diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 0d7e186..28c877d 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -40,8 +40,8 @@
diff --git a/resources/views/livewire/user/profile.blade.php b/resources/views/livewire/user/profile.blade.php index e544455..d3b7fcd 100644 --- a/resources/views/livewire/user/profile.blade.php +++ b/resources/views/livewire/user/profile.blade.php @@ -1,37 +1,37 @@