This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git


The following commit(s) were added to refs/heads/main by this push:
     new 4de18ce  fix: missing translations in slack
4de18ce is described below

commit 4de18ce0ff551e8fb329e81506d67664a6b360e7
Author: Luffy <[email protected]>
AuthorDate: Thu Dec 5 17:16:47 2024 +0800

    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 f314999..62a2a2b 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 23e61b9..2bd9540 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 90d7645..e8f2b8e 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: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> updated question 
<a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
@@ -114,3 +145,7 @@ plugin:
           other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> invited you to 
answer <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
         new_question:
           other: "New question:\n<a 
href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
+        upvoted_answer:
+          other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 点赞了你的回答 <a 
href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
+        downvoted_answer:
+            other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 反对了你的回答 <a 
href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
diff --git a/user-center-slack/i18n/zh_CN.yaml 
b/user-center-slack/i18n/zh_CN.yaml
index f369ac8..d755e7e 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: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 更新问题 <a 
href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
@@ -113,4 +144,8 @@ plugin:
         invited_you_to_answer:
           other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 邀请你回答 <a 
href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
         new_question:
-          other: "新问题:\n<a 
href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
\ No newline at end of file
+          other: "新问题:\n<a 
href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
+        upvoted_answer:
+          other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 点赞了你的回答 <a 
href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
+        downvoted_answer:
+          other: "<a 
href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 反对了你的回答 <a 
href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"

Reply via email to