diff --git a/scripts/utils.sh b/scripts/utils.sh index b991c07..eaf07cd 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -37,8 +37,6 @@ HOLD="-" CM="${GN}✓${CL}" TAB=" " -# Default language -LANGUAGE="${LANGUAGE:-en}" # Create and display spinner spinner() { @@ -87,6 +85,12 @@ initialize_cache() { fi } +load_language() { + if [ -f "$CONFIG_FILE" ]; then + LANGUAGE=$(jq -r '.language' "$CONFIG_FILE") + fi +} + # Translation with cache and predefined terms translate() { local text="$1"