fix default language in initLocalizer

This commit is contained in:
Alireza Ahmadi
2023-06-16 11:10:34 +02:00
parent e1e5899a90
commit 86508876f9
2 changed files with 3 additions and 3 deletions

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.English)
i18nBundle = i18n.NewBundle(language.MustParse("en-US"))
i18nBundle.RegisterUnmarshalFunc("toml", toml.Unmarshal)
// parse files