[MM-39299] Remove outdated translations and update go-i18n library (#18674)

* Remove outdated translations

* update go-i18n dependency

* reflect review comments

* add message count for languages which has two translations for plurals
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2021-10-15 16:26:25 +03:00
коммит произвёл GitHub
родитель 99e6039472
Коммит ba3a911c99
7 изменённых файлов: 9 добавлений и 22 удалений

7
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