Skip to content

Commit fd3958f

Browse files
committed
fix: missing translations in slack
1 parent a0851fb commit fd3958f

File tree

4 files changed

+82
-4
lines changed

4 files changed

+82
-4
lines changed

notification-slack/i18n/en_US.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ plugin:
108108
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> invited you to answer <{{.QuestionUrl}}|{{.QuestionTitle}}>"
109109
new_question:
110110
other: "New question:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
111+
upvoted_answer:
112+
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> upvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
113+
downvoted_answer:
114+
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> downvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"

notification-slack/i18n/zh_CN.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,8 @@ plugin:
107107
invited_you_to_answer:
108108
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> 邀请你回答 <{{.QuestionUrl}}|{{.QuestionTitle}}>"
109109
new_question:
110-
other: "新问题:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
110+
other: "新问题:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
111+
upvoted_answer:
112+
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> upvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
113+
downvoted_answer:
114+
other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> downvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"

user-center-slack/i18n/en_US.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ plugin:
7272
description:
7373
other: Slack signing secret
7474
user_config:
75+
webhook_url:
76+
title:
77+
other: Webhook URL
7578
inbox_notifications:
7679
title:
7780
other: Inbox Notifications
@@ -93,6 +96,34 @@ plugin:
9396
other: Turn on new questions for following tags
9497
description:
9598
other: Get notified of new questions for following tags.
99+
upvoted_answers:
100+
title:
101+
other: UpVoted Answers
102+
label:
103+
other: Turn on notification for upvoted answers
104+
description:
105+
other: Get notified of upvoted answers
106+
downvoted_answers:
107+
title:
108+
other: DownVoted Answers
109+
label:
110+
other: Turn on notification for downvoted answers
111+
description:
112+
other: Get notified of downvoted answers
113+
updated_questions:
114+
title:
115+
other: Updated Questions
116+
label:
117+
other: Turn on notification for updated questions
118+
description:
119+
other: Get notified of updated questions
120+
updated_answers:
121+
title:
122+
other: Updated Answers
123+
label:
124+
other: Turn on notification for updated answers
125+
description:
126+
other: Get notified of updated answers
96127
tpl:
97128
update_question:
98129
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> updated question <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
@@ -114,3 +145,7 @@ plugin:
114145
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> invited you to answer <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
115146
new_question:
116147
other: "New question:\n<a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
148+
upvoted_answer:
149+
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 点赞了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
150+
downvoted_answer:
151+
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 反对了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"

user-center-slack/i18n/zh_CN.yaml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ plugin:
2828
name:
2929
other: Slack
3030
description:
31-
other: 通过Slack进行登录
31+
other: 通过 Slack 进行登录
3232
config:
3333
tip:
3434
title:
@@ -65,13 +65,16 @@ plugin:
6565
title:
6666
other: 通知
6767
description:
68-
other: 用户将在Slack上收到通知
68+
other: 用户将在 Slack 上收到通知
6969
signing_secret:
7070
title:
7171
other: Signing Secret
7272
description:
7373
other: Slack signing secret
7474
user_config:
75+
webhook_url:
76+
title:
77+
other: Webhook URL
7578
inbox_notifications:
7679
title:
7780
other: 收件箱通知
@@ -93,6 +96,34 @@ plugin:
9396
other: 打开关注标签的新问题通知
9497
description:
9598
other: 收到以下标签的新问题通知。
99+
upvoted_answers:
100+
title:
101+
other: 收到一个点赞
102+
label:
103+
other: 打开点赞通知
104+
description:
105+
other: 收到点赞的通知
106+
downvoted_answers:
107+
title:
108+
other: 收到一个反对
109+
label:
110+
other: 打开反对通知
111+
description:
112+
other: 收到反对的通知
113+
updated_questions:
114+
title:
115+
other: 问题更新
116+
label:
117+
other: 打开问题更新通知
118+
description:
119+
other: 收到问题更新的通知
120+
updated_answers:
121+
title:
122+
other: 回答更新
123+
label:
124+
other: 打开回答更新通知
125+
description:
126+
other: 收到回答更新的通知
96127
tpl:
97128
update_question:
98129
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 更新问题 <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
@@ -113,4 +144,8 @@ plugin:
113144
invited_you_to_answer:
114145
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 邀请你回答 <a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>"
115146
new_question:
116-
other: "新问题:\n<a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
147+
other: "新问题:\n<a href=\"{{.QuestionUrl}}\">{{.QuestionTitle}}</a>\n{{.QuestionTags}}"
148+
upvoted_answer:
149+
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 点赞了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"
150+
downvoted_answer:
151+
other: "<a href=\"{{.TriggerUserUrl}}\">{{.TriggerUserDisplayName}}</a> 反对了你的回答 <a href=\"{{.AnswerUrl}}\">{{.QuestionTitle}}</a>"

0 commit comments

Comments
 (0)