Module for managing locales on POSIX-like systems.
salt.modules.localemod.
avail
(locale)Check if a locale is available.
New in version 2014.7.0.
CLI Example:
salt '*' locale.avail 'en_US.UTF-8'
salt.modules.localemod.
gen_locale
(locale)Generate a locale.
New in version 2014.7.0.
Parameters: | locale -- Any locale listed in /usr/share/i18n/locales or /usr/share/i18n/SUPPORTED for debian and gentoo based distros |
---|
CLI Example:
salt '*' locale.gen_locale en_US.UTF-8
salt '*' locale.gen_locale 'en_IE@euro ISO-8859-15'
salt.modules.localemod.
get_locale
()Get the current system locale
CLI Example:
salt '*' locale.get_locale