Update config_menu.sh

This commit is contained in:
MacRimi
2025-01-31 22:07:16 +01:00
committed by GitHub
parent 75e7624d2a
commit f884272f3b

View File

@@ -23,6 +23,19 @@ if ! source <(curl -sSf "$UTILS_URL"); then
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
exit 1
fi
initialize_cache() {
if [ ! -f "$CACHE_FILE" ]; then
echo "{}" > "$CACHE_FILE"
return
fi
}
load_language() {
if [ -f "$CONFIG_FILE" ]; then
LANGUAGE=$(jq -r '.language' "$CONFIG_FILE")
fi
}
# ==========================================================