Skip to content

Commit

Permalink
Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed May 21, 2023
1 parent 3256a0f commit ab767c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ import (
)

func main() {
i := i18n.New("zh-tw").LoadMap(map[string]map[string]string{
i := i18n.New("zh-tw")
i.LoadMap(map[string]map[string]string{
"en-us": map[string]string{
"hello_world": "Hello, world!"
}
Expand Down

0 comments on commit ab767c6

Please sign in to comment.