diff options
author | Wim <wim@42.be> | 2021-10-30 15:17:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 15:17:50 +0200 |
commit | 835dd2635af46e3c8604fae8c9d383a80535c29e (patch) | |
tree | f433dd39c7cf8b35f73ff885ac7fb6f508958263 /vendor/github.com/mattermost/go-i18n/i18n/bundle | |
parent | f65b18c2f6716744fe2f781843f83ddc325b73ec (diff) | |
download | matterbridge-msglm-835dd2635af46e3c8604fae8c9d383a80535c29e.tar.gz matterbridge-msglm-835dd2635af46e3c8604fae8c9d383a80535c29e.tar.bz2 matterbridge-msglm-835dd2635af46e3c8604fae8c9d383a80535c29e.zip |
Update dependencies (#1628)
Diffstat (limited to 'vendor/github.com/mattermost/go-i18n/i18n/bundle')
-rw-r--r-- | vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go | 7 |
1 files changed, 4 insertions, 3 deletions
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 |