-
Notifications
You must be signed in to change notification settings - Fork 6
Locale Module
Sam edited this page Jul 10, 2024
·
1 revision
The locale
module displays the current locale your user/system uses, depending on the $LANG environment variable.
Insert into the modules
array.
-
title
-> (String) The module title. -
format
-> (String) The format used to display the module. Check below to see available placeholders. -
title_color
-> (Optional/String) Override the title color to be used. -
title_bold
-> (Optional/Bool) Make the title bold. -
title_italic
-> (Optional/Bool) Make the title italic. -
seperator
-> (Optional/Char) Override the separator to be used.
-
{language}
-> The selected language. -
{encoding}
-> The encoding selected, likely UTF-8.
[locale]
title = "Locale"
format = "{language} ({encoding})"
modules = [
"locale"
]
[locale]
title = "Language"
format = "{language}"