From bfeb2fdc427c75ea3467e7716d359fd05e50df4b Mon Sep 17 00:00:00 2001 From: Ryo Hanafusa Date: Sun, 27 Oct 2024 09:43:03 +0000 Subject: [PATCH 1/2] Add slack username usage --- src/components/notifications/Slack.vue | 3 +++ src/lang/en.json | 1 + 2 files changed, 4 insertions(+) diff --git a/src/components/notifications/Slack.vue b/src/components/notifications/Slack.vue index dc07bf373..34c4c9e6f 100644 --- a/src/components/notifications/Slack.vue +++ b/src/components/notifications/Slack.vue @@ -20,6 +20,9 @@ https://api.slack.com/messaging/webhooks +

+ {{ $t("aboutUsername", [$t("Username"), $t("Friendly Name")]) }} +

{{ $t("aboutChannelName", [$t("slack")]) }}

diff --git a/src/lang/en.json b/src/lang/en.json index 07d3a3d24..79e5e7c92 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -731,6 +731,7 @@ "Icon Emoji": "Icon Emoji", "signalImportant": "IMPORTANT: You cannot mix groups and numbers in recipients!", "aboutWebhooks": "More info about Webhooks on: {0}", + "aboutUsername": "The {0} can change the display name of the message sender. This is not for mentions. If you want to mention someone, include it in the {1}.", "aboutChannelName": "Enter the channel name on {0} Channel Name field if you want to bypass the Webhook channel. Ex: #other-channel", "aboutKumaURL": "If you leave the Uptime Kuma URL field blank, it will default to the Project GitHub page.", "smtpDkimSettings": "DKIM Settings", From 669fa913880e6e4fcb376f3997ac12102c0a4be3 Mon Sep 17 00:00:00 2001 From: Ryo Hanafusa Date: Sun, 27 Oct 2024 09:45:48 +0000 Subject: [PATCH 2/2] add `slack` to the message --- src/components/notifications/Slack.vue | 2 +- src/lang/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/Slack.vue b/src/components/notifications/Slack.vue index 34c4c9e6f..a7c24251a 100644 --- a/src/components/notifications/Slack.vue +++ b/src/components/notifications/Slack.vue @@ -21,7 +21,7 @@ https://api.slack.com/messaging/webhooks

- {{ $t("aboutUsername", [$t("Username"), $t("Friendly Name")]) }} + {{ $t("aboutUsername", [$t("slack"), $t("Username"), $t("Friendly Name")]) }}

{{ $t("aboutChannelName", [$t("slack")]) }} diff --git a/src/lang/en.json b/src/lang/en.json index 79e5e7c92..57b9e329a 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -731,7 +731,7 @@ "Icon Emoji": "Icon Emoji", "signalImportant": "IMPORTANT: You cannot mix groups and numbers in recipients!", "aboutWebhooks": "More info about Webhooks on: {0}", - "aboutUsername": "The {0} can change the display name of the message sender. This is not for mentions. If you want to mention someone, include it in the {1}.", + "aboutUsername": "The {0} {1} can change the display name of the message sender. This is not for mentions. If you want to mention someone, include it in the {2}.", "aboutChannelName": "Enter the channel name on {0} Channel Name field if you want to bypass the Webhook channel. Ex: #other-channel", "aboutKumaURL": "If you leave the Uptime Kuma URL field blank, it will default to the Project GitHub page.", "smtpDkimSettings": "DKIM Settings",