<\/span><\/h2>\n\n\n\nTo list the available language support, execute the following command:<\/p>\n\n\n\n
localectl list-locales<\/pre>\n\n\n\nYou should receive the following output:<\/p>\n\n\n\n
[root@host ~]# localectl list-locales\nC.UTF-8\naa_DJ.UTF-8\naa_ER.UTF-8\naa_ER.UTF-8@saaho\naa_ET.UTF-8\naf_ZA.UTF-8\nagr_PE.UTF-8\nak_GH.UTF-8\nam_ET.UTF-8\nan_ES.UTF-8\nanp_IN.UTF-8\nar_AE.UTF-8\nar_BH.UTF-8\nar_DZ.UTF-8\nar_EG.UTF-8\n .\n .\n .\n .\n<\/pre>\n\n\n\nAs you can see, the language options are in alphabetical order. To find, for example, some specific language, you can use the same command with the grep<\/strong> command:<\/p>\n\n\n\nlocalectl list-locales | grep US<\/pre>\n\n\n\nThe command above will return the following output:<\/p>\n\n\n\n
[root@host ~]# localectl list-locales | grep US\nchr_US.UTF-8\nen_US.UTF-8\nes_US.UTF-8\nunm_US.UTF-8\nyi_US.UTF-8\n<\/pre>\n\n\n\nThis command with grep and specifying the shortcut of the country will return all locales for that country. Let’s move to the next and most important paragraph of this tutorial.<\/p>\n\n\n\n
<\/span>Set up System Locale<\/span><\/h2>\n\n\n\nIn this step, we will provide you with the exact command to change (set up) the system locale. Feel free to execute the following command:<\/p>\n\n\n\n
localectl set-local unm_US.UTF-8<\/pre>\n\n\n\nThis will change the locale on your server. Now, if you executed the localectl<\/strong> command before and after setting up the system locale on your server, you would get the following output:<\/p>\n\n\n\n[root@host ~]# localectl\nSystem Locale: LANG=en_US.UTF-8<\/strong>\n VC Keymap: us\n X11 Layout: us\n[root@host ~]# localectl set-locale unm_US.UTF-8\n[root@host ~]# localectl\nSystem Locale: LANG=unm_US.UTF-8<\/strong>\n VC Keymap: us\n X11 Layout: us\n[root@host ~]#\n<\/pre>\n\n\n\nAs you can see, the locale has been changed from LANG=en_US.UTF-8<\/strong> TO LANG=unm_US.UTF-8<\/strong><\/p>\n\n\n\n