From 835dd2635af46e3c8604fae8c9d383a80535c29e Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 30 Oct 2021 15:17:50 +0200 Subject: Update dependencies (#1628) --- vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vendor/github.com/mattermost/go-i18n/i18n') diff --git a/vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go b/vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go index c80512d7..9c572c07 100644 --- a/vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go +++ b/vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go @@ -386,12 +386,13 @@ func (b *Bundle) translate(lang *language.Language, translationID string, args . countInt, ok := count.(int) if ok && countInt > 1 { template = translation.Template(language.Other) - if template == nil { - return translationID - } } } + if template == nil { + return translationID + } + s := template.Execute(data) if s == "" { return translationID -- cgit v1.2.3