From 4b6437854c433fb4f561300c16c76f890594e810 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 5 May 2025 09:31:23 -0700 Subject: [PATCH] swapped out hard coded text with translation --- app/Livewire/SlackSettingsForm.php | 2 +- resources/lang/en-US/admin/settings/message.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Livewire/SlackSettingsForm.php b/app/Livewire/SlackSettingsForm.php index 0610f4b8a4..8bc775a27a 100644 --- a/app/Livewire/SlackSettingsForm.php +++ b/app/Livewire/SlackSettingsForm.php @@ -90,7 +90,7 @@ class SlackSettingsForm extends Component $this->isDisabled= ''; } if($this->webhook_selected === 'microsoft' && $this->teams_webhook_deprecated) { - session()->flash('warning', 'The selected Microsoft Teams webhook URL will be deprecated Dec 31st, 2025. Please use a workflow URL. Microsoft\'s documentation on creating a workflow can be found here.'); + session()->flash('warning', trans('admin/settings/message.webhook.ms_teams_deprecation')); } } public function updated($field) { diff --git a/resources/lang/en-US/admin/settings/message.php b/resources/lang/en-US/admin/settings/message.php index 9be2901747..cc812485c1 100644 --- a/resources/lang/en-US/admin/settings/message.php +++ b/resources/lang/en-US/admin/settings/message.php @@ -49,6 +49,7 @@ return [ 'error_redirect' => 'ERROR: 301/302 :endpoint returns a redirect. For security reasons, we don’t follow redirects. Please use the actual endpoint.', 'error_misc' => 'Something went wrong. :( ', 'webhook_fail' => ' webhook notification failed: Check to make sure the URL is still valid.', - 'webhook_channel_not_found' => ' webhook channel not found.' + 'webhook_channel_not_found' => ' webhook channel not found.', + 'ms_teams_deprecation' => 'The selected Microsoft Teams webhook URL will be deprecated Dec 31st, 2025. Please use a workflow URL. Microsoft\'s documentation on creating a workflow can be found here.', ] ];