Skip to content

Commit

Permalink
doc(localizer): add specification about language tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBoisLydia committed Mar 3, 2022
1 parent 7f6b563 commit 23ab723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v2/i18n/localizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (
)

// Localizer provides Localize and MustLocalize methods that return localized messages.
// Localize and MustLocalize methods use a language.Tag matching algorithm based
// on the best possible value. This algorithm may cause an unexpected language.Tag returned
// value depending on the order of the tags stored in memory.
type Localizer struct {
// bundle contains the messages that can be returned by the Localizer.
bundle *Bundle
Expand Down

0 comments on commit 23ab723

Please sign in to comment.