Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-06-16 12:31:34 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-16 12:31:34 +0300
commit97925eeebe30c2f70bad6b6c240728034638842f (patch)
treecd7350c0aba5f90e3644f76cd347066d37cbaa5e /web/locale
parent1328bb5aba704a81d3cd8a227515a5d859bfc472 (diff)
fix default language in initLocalizer
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/locale')
-rw-r--r--web/locale/locale.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/locale/locale.go b/web/locale/locale.go
index 9a4357c3..4a5f5c6e 100644
--- a/web/locale/locale.go
+++ b/web/locale/locale.go
@@ -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