summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/go-i18n/i18n/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mattermost/go-i18n/i18n/bundle')
-rw-r--r--vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go7
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