Skip to content

Commit efe50b1

Browse files
author
cayter
committed
refactor(i18n): use Infof() instead of Warn() to simplify error message
1 parent 64f6ca5 commit efe50b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

support/i18n.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (i *I18n) T(key string, args ...interface{}) string {
100100
localizer := i18n.NewLocalizer(i.bundle, locale)
101101
msg, err := localizer.Localize(&i18n.LocalizeConfig{MessageID: key, TemplateData: data})
102102
if err != nil {
103-
i.logger.Warn(err)
103+
i.logger.Infof("[I18N] %s", err.Error())
104104
return ""
105105
}
106106

0 commit comments

Comments
 (0)