[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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
99e6039472
Коммит
ba3a911c99
7
vendor/github.com/mattermost/go-i18n/i18n/bundle/bundle.go
сгенерированный
поставляемый
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
|
||||
|
||||
Ссылка в новой задаче
Block a user