Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions i18n/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package i18n
import (
"fmt"
"os"
"path"
"path/filepath"
"strings"
)
Expand Down Expand Up @@ -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
}
Expand Down
Loading