This commit is contained in:
Marc Beninca 2024-08-29 16:12:46 +02:00
parent f920e596d9
commit 25dba9af19
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -172,6 +172,21 @@ _spcd_step_wipe() {
"__SPCD_STEP_${__SPCD_STEP_LEVEL}_LABEL" "__SPCD_STEP_${__SPCD_STEP_LEVEL}_LABEL"
} }
# ╭───┬─────╮
# │ _ │ txt │
# ╰───┴─────╯
_SPCD_TXT_LANGUAGE_ENGLISH="en"
_SPCD_TXT_LANGUAGE_FRENCH="fr"
_spcd_txt_pick() {
case "${SPCD_TXT_LANGUAGE}" in
"${_SPCD_TXT_LANGUAGE_ENGLISH}") echo "${2}" ;;
"${_SPCD_TXT_LANGUAGE_FRENCH}") echo "${1}" ;;
*) ;;
esac
}
# ╭───────────╮ # ╭───────────╮
# │ functions │ # │ functions │
# ╰───────────╯ # ╰───────────╯