Skip to main content

Module i18n

Module i18n 

Source
Expand description

Locale selection helper.

Translations themselves are handled by rust_i18n from YAML files in locales/ (English default). This module maps the --lang argument or environment variables to a rust-i18n locale code.

Functions§

init
Initialise the locale from the --lang argument (takes priority) or the LC_ALL/LANG environment variables. Defaults to English.