Skip to main content

Module i18n

Module i18n 

Source
Expand description

Internationalization support for tool descriptions.

Loads tool descriptions from TOML locale files in tool_descriptions/. Falls back to English when a locale file or specific key is missing, and ultimately falls back to the hardcoded tool.description() value if no file-based description exists.

Structs§

ToolDescriptions
Container for locale-specific tool descriptions loaded from TOML files.

Functions§

default_search_dirs
Build the default set of search directories for locale files.
detect_locale
Detect the user’s preferred locale from environment variables.