mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-27 20:06:52 +00:00
Update utils.sh
This commit is contained in:
parent
f448bad28b
commit
1633fe0dfe
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user