new-locale.sh
# Show all available locales | |
locale -a | |
# Generate a new locale | |
locale-gen pt_BR.UTF-8 | |
# reconfigures packages after they have already been installed | |
dpkg-reconfigure locales | |
# Updates the default language | |
update-locale LANG=pt_BR.UTF-8 | |
# Query the value set in LANG | |
cat /etc/default/locale |