fix: Replace logging with fmt.Println for language file loading errors in i18n module

This commit is contained in:
HynoR 2025-11-21 12:40:23 +08:00
parent 83874f4c27
commit 18114c545a

View file

@ -2,6 +2,7 @@ package i18n
import (
"embed"
"fmt"
"strings"
"sync"
"sync/atomic"
@ -143,7 +144,7 @@ func Init() {
for _, file := range langFiles {
if _, err := bundle.LoadMessageFileFS(fs, file); err != nil {
global.LOG.Warnf("failed to load language file %s: %v", file, err)
fmt.Println("failed to load language file %s: %v", file, err)
}
}