Skip to content

Commit

Permalink
nameInsenstive while New
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed May 21, 2023
1 parent d21677e commit cc75f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func WithPluralizor(p map[string]Pluralizor) func(*I18n) {
// New creates a new internationalization.
func New(defaultLocale string, options ...func(*I18n)) *I18n {
i := &I18n{
defaultLocale: defaultLocale,
defaultLocale: nameInsenstive(defaultLocale),
unmarshaler: json.Unmarshal,
pluralizors: make(map[string]Pluralizor),
fallbacks: make(map[string][]string),
Expand Down

0 comments on commit cc75f29

Please sign in to comment.