File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,13 +97,13 @@ func InitWithLocale(locale string) *goi18n.Localizer {
9797
9898 bundle := goi18n .NewBundle (language .English )
9999 bundle .RegisterUnmarshalFunc ("json" , json .Unmarshal )
100- err := bundle .LoadMessageFileFS (LocaleFS , "v2Resources/active.en-US.json" )
100+ _ , err := bundle .LoadMessageFileFS (LocaleFS , "v2Resources/active.en-US.json" )
101101 if err != nil {
102- fmt .Printf ("Unable to load language from v2Resources/active.en-US.json\n " , lang_file )
102+ fmt .Printf ("Unable to load language from v2Resources/active.en-US.json\n " )
103103 }
104104 if locale != "en_US" {
105105 lang_file := fmt .Sprintf ("v2Resources/active.%s.json" , locale )
106- err = bundle .LoadMessageFileFS (LocaleFS , lang_file )
106+ _ , err = bundle .LoadMessageFileFS (LocaleFS , lang_file )
107107 if err != nil {
108108 fmt .Printf ("Unable to load language from %s\n " , lang_file )
109109 }
You can’t perform that action at this time.
0 commit comments