diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 3a52dcd..f51acb9 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -172,6 +172,21 @@ _spcd_step_wipe() { "__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 │ # ╰───────────╯