From 32b3551da5aa29a7507d55fcd0579b7ea423f63e Mon Sep 17 00:00:00 2001 From: drew Date: Wed, 29 Apr 2026 18:53:02 +0400 Subject: [PATCH] fix: change read path (Windows compatability issue) Signed-off-by: drew --- i18n/loader.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/i18n/loader.go b/i18n/loader.go index e929a5b..d5fb682 100644 --- a/i18n/loader.go +++ b/i18n/loader.go @@ -3,6 +3,7 @@ package i18n import ( "fmt" "os" + "path" "path/filepath" "strings" ) @@ -35,8 +36,8 @@ func loadFromEmbedded(bundle *Bundle) error { continue } - // Read file - data, err := localeFS.ReadFile(filepath.Join("locales", filename)) + // Read file (embed.FS always uses forward slashes, even on Windows) + data, err := localeFS.ReadFile(path.Join("locales", filename)) if err != nil { continue }