This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
commit 82497c418ddeb869b4b40e171d9e850b58064122 Author: Sonui <[email protected]> AuthorDate: Tue Aug 13 14:41:45 2024 +0800 fix: get plugin info from i18n --- notification-lark/notification.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/notification-lark/notification.go b/notification-lark/notification.go index c3fd84b..9ae5b32 100644 --- a/notification-lark/notification.go +++ b/notification-lark/notification.go @@ -80,9 +80,9 @@ func (n Notification) Info() plugin.Info { } return plugin.Info{ - Name: plugin.MakeTranslator("NotificationLark"), + Name: plugin.MakeTranslator(lark_i18n.InfoName), SlugName: n.info.SlugName, - Description: plugin.MakeTranslator(""), + Description: plugin.MakeTranslator(lark_i18n.InfoDescription), Author: n.info.Author, Version: n.info.Version, Link: n.info.Link, @@ -90,7 +90,6 @@ func (n Notification) Info() plugin.Info { } func renderTag(tags []string) string { - var builder strings.Builder for _, tag := range tags { idx := RandomInt(0, int64(len(TagColor)))
