To set the locales (internationalization or i18n) on a Linux or Unix system, follow these steps:
/usr/share/i18n/locales directory:ls /usr/share/i18n/locales
This will show a list of all available locales, such as en_US.utf8 and fr_FR.utf8.
locale-gen command with the names of the locales as arguments. For example, to generate the en_US.utf8 and fr_FR.utf8 locales:locale-gen en_US.utf8 fr_FR.utf8
/etc/locale.conf file. Open the file in a text editor and add the following line:LANG=en_US.utf8
Replace en_US.utf8 with the name of the desired default locale.
~/.bashrc file. Open the file in a text editor and add the following line:export LANG=en_US.utf8
Replace en_US.utf8 with the name of the desired default locale.
You can verify that the locale has been set by running
locale -a