Changing CentOS system language from command prompt

On some dedicated or virtual servers you might notice that system language is in another language when you login by ssh.

You can check the current language by localectl command

localectl
 System Locale: LANG=de_DE.UTF-8
 VC Keymap: de-nodeadkeys
 X11 Layout: de
 X11 Variant: nodeadkeys

Change language to something else (English in this sample) with this command

localectl set-locale LANG=en_US.UTF-8

Or list all available languages with: localectl list-locales

After you change language with localectl set-locale you might need to restart your SSH sesion or reboot server if needed.