Managing Locale Settings

The language and cultural settings that affect the preferences seen in your programs and interface are collectively referred to as a locale. Character sets, message language, and other conventions fall under this category. We’ll go over how to verify and change your containers’ locale settings below.

1. English language settings are used by default in all platform-managed templates. With the following command, you may see the current locale settings on a container (it can be run over Web SSH, for example):


locale -a

Locale settings

2. You can use the “localedef” tool to add support for a new language.


sudo localedef -i {language}_{country} -f {codeset} {language}_{country}.{codeset}

Localedef

Here:

{language}_{country} – represents a combination of language and country code.

{codeset} – specifies the character encoding (e.g., UTF-8)

3. Confirm that the new locale has been added by reviewing the list of all supported locales.


locale -a

Added Locale

It will become apparent to you that the new language has been incorporated and can be utilized in your apps.