fix: deploy lng directory, absolute translation path

This commit is contained in:
Claus Lohmar 2026-07-08 15:50:49 +01:00
parent bad04bf390
commit af8dc42dd6
2 changed files with 6 additions and 1 deletions

View file

@ -122,6 +122,11 @@ if [ "$GREENFIELD" = true ]; then
cp -r "$SCRIPT_DIR/config/www"/* "$TARGET_DIR/www/"
fi
# Copy language files
if [ -d "$SCRIPT_DIR/lng" ]; then
cp -r "$SCRIPT_DIR/lng" "$TARGET_DIR/lng"
fi
# Deploy Caddy + Authelia
echo "[5/5] Deploying Caddy and Authelia..."
mkdir -p "$TARGET_DIR/data/caddy"

View file

@ -485,7 +485,7 @@ func loadTranslations(lang string) Translations {
return cached
}
}
basePath := filepath.Join(os.Getenv("CONFIG_DIR"), "../../lng", lang)
basePath := filepath.Join("/opt/nextworkspace", "lng", lang)
result := Translations{}
files := []string{"launcher.yaml", "admin.yaml"}
for _, f := range files {