Skip to content

Debian server language support management

1. Add new language support

# check installed language
sudo locale -a

# install a new language support
sudo locale-gen en_US.UTF-8

2. Change the default language support

sudo vim /etc/default/locale

# add the below lines
LANG=en_US.UTF-8
LANGUAGE="en_US:en"
LC_ADDRESS=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8


# load the new config
source /etc/default/locale

# update the language support by using the default config
sudo update-locale LANG=en_US.UTF-8