Skip to content

Commit

Permalink
Change to no
Browse files Browse the repository at this point in the history
  • Loading branch information
egornevezhin committed Apr 17, 2024
1 parent affdf28 commit deba498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i18n/localizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ func (l *Localizer) getMessageTemplate(id string, defaultMessage *Message) (lang

tag := l.bundle.tags[i]
mt := l.bundle.getMessageTemplate(tag, id)
if conf == language.Exact && mt != nil {
if conf != language.No && mt != nil {
return tag, mt, nil
}

if tag == l.bundle.defaultLanguage {
if defaultMessage == nil {
return language.Und, nil, &MessageNotFoundErr{Tag: tag, MessageID: id}
Expand Down

0 comments on commit deba498

Please sign in to comment.