fix default language in initLocalizer

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaeiandAlireza Ahmadi committed 2023-06-16 13:01:34 +03:30
1 parent 1328bb5aba
commit 97925eeebe
3 files changed
+4 -4

No files matched your search

+1 -1
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