add locale support to cli authentication part