Use existing slack translations

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-15 14:06:52 -08:00
parent 2d0bd2b292
commit 27e5832a28
2 changed files with 4 additions and 3 deletions

View file

@ -60,11 +60,11 @@ class SlackSettingsForm extends Component
return session()->flash('success' , 'Your Slack Integration works!');
} catch (\Exception $e) {
return session()->flash('error' , 'Please check the channel name and webhook endpoint URL ('.e($this->slack_endpoint).'). Slack responded with: '.$e->getMessage());
return session()->flash('error' , trans('admin/settings/message.slack.error', ['error_message' => $e->getMessage()]));
}
//}
return session()->flash('message' , 'Something went wrong :( ');
return session()->flash('message' , trans('admin/settings/message.slack.error_misc'));

View file

@ -38,6 +38,7 @@ return [
'success_pt1' => 'Success! Check the ',
'success_pt2' => ' channel for your test message, and be sure to click SAVE below to store your settings.',
'500' => '500 Server Error.',
'error' => 'Something went wrong.',
'error' => 'Something went wrong. Slack responded with: :error_message',
'error_misc' => 'Something went wrong. :( ',
]
];