Skip to content

Commit

Permalink
Return support for languages not on the official list
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 16, 2024
1 parent 04746cc commit bed23d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/lang.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ func AddTranslationsFS(fs embed.FS, dir string) (retErr error) {
}

func addLanguage(data []byte, name string) error {
_, err := bundle.ParseMessageFileBytes(data, name)
f, err := bundle.ParseMessageFileBytes(data, name)
translated = append(translated, f.Tag)
return err
}

Expand Down

0 comments on commit bed23d9

Please sign in to comment.