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 @@
@csrf - - + + 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 @@
- Edit Your Profile + @lang('Edit Your Profile')
- +
- +
-
- +
- Save + @lang('Save')
- Save + @lang('Save')
diff --git a/resources/views/livewire/users/create.blade.php b/resources/views/livewire/users/create.blade.php index 9ce3c37..61e2cca 100644 --- a/resources/views/livewire/users/create.blade.php +++ b/resources/views/livewire/users/create.blade.php @@ -1,18 +1,18 @@
- +
- +
- +
-
- +
- Save + @lang('Save') diff --git a/resources/views/livewire/users/index.blade.php b/resources/views/livewire/users/index.blade.php index 3d4abe7..c71cc49 100644 --- a/resources/views/livewire/users/index.blade.php +++ b/resources/views/livewire/users/index.blade.php @@ -1,20 +1,21 @@
- Remember to take a look at the source code to understand how the components in this area were built and are being used. + @lang('Remember to take a look at the source code to understand how the components in this area were built and are being used.')
- + @interact('column_created_at', $row) {{ $row->created_at->diffForHumans() }} @endinteract + @interact('column_action', $row)
- +
@endinteract
diff --git a/resources/views/livewire/users/update.blade.php b/resources/views/livewire/users/update.blade.php index 1dc8437..1955e56 100644 --- a/resources/views/livewire/users/update.blade.php +++ b/resources/views/livewire/users/update.blade.php @@ -2,15 +2,15 @@
- +
- +
-
- +
- Save + @lang('Save')