Update locale.go

This commit is contained in:
quydang 2023-09-27 15:30:03 +07:00 committed by GitHub
parent 99a28cc6fc
commit cd900f70c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ type SettingService interface {
func InitLocalizer(i18nFS embed.FS, settingService SettingService) error {
// set default bundle to english
i18nBundle = i18n.NewBundle(language.MustParse("vi-VN"))
i18nBundle = i18n.NewBundle(language.MustParse("en-US"))
i18nBundle.RegisterUnmarshalFunc("toml", toml.Unmarshal)
// parse files