First make sure your library language is installed
sudo apt-get install language-pack-en-base, for example,
then as superuser shorten the work by allowing Ubuntu to configure them.
sudo dpkg-reconfigure locales
Check up your setup and if correct good, if you have the LANG= or LANGUAGE= settings blank, in command line, run:
Which generates the locales installed and available to you.
Choose the locale from the output generated that fits your situation, and export that setting to replace your locales:
export LC_ALL="en.utf-8" ,for example.
Manual install: The answer is to use export to set Locale by hand which will manually install custom locales, first run the set up as above,:
Then, say you want to install
"en_us-8" for language but have need for another locale for NUMERIC and TIME, you may wish to use
"en_NZ.utf-8" or and these are case sensitive, so yours could be different; such as
NUMERIC="en.dk.ISO-8859-15"; travelling to New Zealand, I could change Locale
LANGUAGE=to "en.NZ, for Germany I would just need to install the locales pkg from that country and input, in terminal, the codes as below.
LC_ALL= may remain empty.