mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update utils.sh
This commit is contained in:
parent
f448bad28b
commit
1633fe0dfe
@ -37,8 +37,6 @@ HOLD="-"
|
|||||||
CM="${GN}✓${CL}"
|
CM="${GN}✓${CL}"
|
||||||
TAB=" "
|
TAB=" "
|
||||||
|
|
||||||
# Default language
|
|
||||||
LANGUAGE="${LANGUAGE:-en}"
|
|
||||||
|
|
||||||
# Create and display spinner
|
# Create and display spinner
|
||||||
spinner() {
|
spinner() {
|
||||||
@ -87,6 +85,12 @@ initialize_cache() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
load_language() {
|
||||||
|
if [ -f "$CONFIG_FILE" ]; then
|
||||||
|
LANGUAGE=$(jq -r '.language' "$CONFIG_FILE")
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Translation with cache and predefined terms
|
# Translation with cache and predefined terms
|
||||||
translate() {
|
translate() {
|
||||||
local text="$1"
|
local text="$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user