fix: change read path in i18n loader (#1193)

Drew Smirnoff created

## What?

Uses a different way to read locales in the `i18n` package.

The problem was with Windows compatibility, it returned an error,
because couldn't reach the file

## Why?

Closes #1192

Signed-off-by: drew <me@andrinoff.com>

Change summary

i18n/loader.go | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Detailed changes

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
 		}