diff --git a/src/Actions/TranslatableAction.php b/src/Actions/TranslatableAction.php index 1ab9272..3c10e0f 100644 --- a/src/Actions/TranslatableAction.php +++ b/src/Actions/TranslatableAction.php @@ -47,7 +47,7 @@ function (Field $component) { } else { $text = $component->getState(); } - + try { $googleTranslate = $googleTranslate->translate($source, $data['target'], $text); $component->state($googleTranslate); @@ -65,7 +65,7 @@ function (Field $component) { } catch (\Exception $exception) { Notification::make() ->title(__('filament-translate-action::filament-translate-action.error_title')) - ->body(__('filament-translate-action::filament-translate-action.error_message'). '
' . $exception->getMessage()) + ->body(__('filament-translate-action::filament-translate-action.error_message') . '
' . $exception->getMessage()) ->danger() ->send();