From 4de18ce0ff551e8fb329e81506d67664a6b360e7 Mon Sep 17 00:00:00 2001
From: Luffy <52o@qq52o.cn>
Date: Thu, 5 Dec 2024 17:16:47 +0800
Subject: [PATCH] fix: missing translations in slack
---
notification-slack/i18n/en_US.yaml | 4 +++
notification-slack/i18n/zh_CN.yaml | 6 ++++-
user-center-slack/i18n/en_US.yaml | 35 +++++++++++++++++++++++++
user-center-slack/i18n/zh_CN.yaml | 41 +++++++++++++++++++++++++++---
4 files changed, 82 insertions(+), 4 deletions(-)
diff --git a/notification-slack/i18n/en_US.yaml b/notification-slack/i18n/en_US.yaml
index f3149992b..62a2a2baa 100644
--- a/notification-slack/i18n/en_US.yaml
+++ b/notification-slack/i18n/en_US.yaml
@@ -108,3 +108,7 @@ plugin:
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> invited you to answer <{{.QuestionUrl}}|{{.QuestionTitle}}>"
new_question:
other: "New question:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
+ upvoted_answer:
+ other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> upvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
+ downvoted_answer:
+ other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> downvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
diff --git a/notification-slack/i18n/zh_CN.yaml b/notification-slack/i18n/zh_CN.yaml
index 23e61b9ba..2bd954084 100644
--- a/notification-slack/i18n/zh_CN.yaml
+++ b/notification-slack/i18n/zh_CN.yaml
@@ -107,4 +107,8 @@ plugin:
invited_you_to_answer:
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> 邀请你回答 <{{.QuestionUrl}}|{{.QuestionTitle}}>"
new_question:
- other: "新问题:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
\ No newline at end of file
+ other: "新问题:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
+ upvoted_answer:
+ other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> upvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
+ downvoted_answer:
+ other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> downvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
diff --git a/user-center-slack/i18n/en_US.yaml b/user-center-slack/i18n/en_US.yaml
index 90d764516..e8f2b8eff 100644
--- a/user-center-slack/i18n/en_US.yaml
+++ b/user-center-slack/i18n/en_US.yaml
@@ -72,6 +72,9 @@ plugin:
description:
other: Slack signing secret
user_config:
+ webhook_url:
+ title:
+ other: Webhook URL
inbox_notifications:
title:
other: Inbox Notifications
@@ -93,6 +96,34 @@ plugin:
other: Turn on new questions for following tags
description:
other: Get notified of new questions for following tags.
+ upvoted_answers:
+ title:
+ other: UpVoted Answers
+ label:
+ other: Turn on notification for upvoted answers
+ description:
+ other: Get notified of upvoted answers
+ downvoted_answers:
+ title:
+ other: DownVoted Answers
+ label:
+ other: Turn on notification for downvoted answers
+ description:
+ other: Get notified of downvoted answers
+ updated_questions:
+ title:
+ other: Updated Questions
+ label:
+ other: Turn on notification for updated questions
+ description:
+ other: Get notified of updated questions
+ updated_answers:
+ title:
+ other: Updated Answers
+ label:
+ other: Turn on notification for updated answers
+ description:
+ other: Get notified of updated answers
tpl:
update_question:
other: "{{.TriggerUserDisplayName}} updated question {{.QuestionTitle}}"
@@ -114,3 +145,7 @@ plugin:
other: "{{.TriggerUserDisplayName}} invited you to answer {{.QuestionTitle}}"
new_question:
other: "New question:\n{{.QuestionTitle}}\n{{.QuestionTags}}"
+ upvoted_answer:
+ other: "{{.TriggerUserDisplayName}} 点赞了你的回答 {{.QuestionTitle}}"
+ downvoted_answer:
+ other: "{{.TriggerUserDisplayName}} 反对了你的回答 {{.QuestionTitle}}"
diff --git a/user-center-slack/i18n/zh_CN.yaml b/user-center-slack/i18n/zh_CN.yaml
index f369ac8ba..d755e7ea1 100644
--- a/user-center-slack/i18n/zh_CN.yaml
+++ b/user-center-slack/i18n/zh_CN.yaml
@@ -28,7 +28,7 @@ plugin:
name:
other: Slack
description:
- other: 通过Slack进行登录
+ other: 通过 Slack 进行登录
config:
tip:
title:
@@ -65,13 +65,16 @@ plugin:
title:
other: 通知
description:
- other: 用户将在Slack上收到通知。
+ other: 用户将在 Slack 上收到通知。
signing_secret:
title:
other: Signing Secret
description:
other: Slack signing secret
user_config:
+ webhook_url:
+ title:
+ other: Webhook URL
inbox_notifications:
title:
other: 收件箱通知
@@ -93,6 +96,34 @@ plugin:
other: 打开关注标签的新问题通知
description:
other: 收到以下标签的新问题通知。
+ upvoted_answers:
+ title:
+ other: 收到一个点赞
+ label:
+ other: 打开点赞通知
+ description:
+ other: 收到点赞的通知
+ downvoted_answers:
+ title:
+ other: 收到一个反对
+ label:
+ other: 打开反对通知
+ description:
+ other: 收到反对的通知
+ updated_questions:
+ title:
+ other: 问题更新
+ label:
+ other: 打开问题更新通知
+ description:
+ other: 收到问题更新的通知
+ updated_answers:
+ title:
+ other: 回答更新
+ label:
+ other: 打开回答更新通知
+ description:
+ other: 收到回答更新的通知
tpl:
update_question:
other: "{{.TriggerUserDisplayName}} 更新问题 {{.QuestionTitle}}"
@@ -113,4 +144,8 @@ plugin:
invited_you_to_answer:
other: "{{.TriggerUserDisplayName}} 邀请你回答 {{.QuestionTitle}}"
new_question:
- other: "新问题:\n{{.QuestionTitle}}\n{{.QuestionTags}}"
\ No newline at end of file
+ other: "新问题:\n{{.QuestionTitle}}\n{{.QuestionTags}}"
+ upvoted_answer:
+ other: "{{.TriggerUserDisplayName}} 点赞了你的回答 {{.QuestionTitle}}"
+ downvoted_answer:
+ other: "{{.TriggerUserDisplayName}} 反对了你的回答 {{.QuestionTitle}}"