Skip to content

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.

Using

Insert into the modules array.

Configuration

  • 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.
format placeholders;
  • {language} -> The selected language.
  • {encoding} -> The encoding selected, likely UTF-8.
Default Configuration
[locale]
title = "Locale"
format = "{language} ({encoding})"

Example

modules = [
    "locale"
]

[locale]
title = "Language"
format = "{language}"