Update locale.go

This commit is contained in:
quydang 2023-09-27 15:13:22 +07:00 committed by GitHub
parent 481f34394a
commit f0270027b8
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("en-US"))
i18nBundle = i18n.NewBundle(language.MustParse("vi-VN"))
i18nBundle.RegisterUnmarshalFunc("toml", toml.Unmarshal)
// parse files