# shellcheck shell=dash

___x_cmd_lang_ls(){
    if ___x_cmd_is_stdout2tty && ___x_cmd_runmode_allow_manual; then
        ___x_cmd_lang_ls___raw  "$@" | ___x_cmd pick
    else
        ___x_cmd_lang_ls___raw  "$@"
    fi
}

___x_cmd_lang_ls___raw(){
    if [ -d /usr/share/i18n/locales ]; then
        ___x_cmd fsiter /usr/share/i18n/locales
    else
        ___x_cmd_cmds locale -a
    fi
}

