move locales to client/ui/i18n

This commit is contained in:
Eduard Gert
2026-05-26 12:34:01 +02:00
parent 67a1f3c4fe
commit 91e0520f27
12 changed files with 30 additions and 21 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ var assets embed.FS
// The `all:` prefix is required so _index.json is included — //go:embed
// silently drops files whose names start with "_" or "." otherwise.
//
//go:embed all:frontend/src/i18n/locales
//go:embed all:i18n/locales
var localesRoot embed.FS
// stringList is a flag.Value that collects repeated string flags. The first
@@ -137,7 +137,7 @@ func main() {
// so the bundle sees _index.json and <lang>/common.json at the top
// level (the //go:embed path is rooted at the package, not the leaf
// dir).
localesFS, err := fs.Sub(localesRoot, "frontend/src/i18n/locales")
localesFS, err := fs.Sub(localesRoot, "i18n/locales")
if err != nil {
log.Fatalf("locate locales fs: %v", err)
}