Skip to main content

Module i18n

Module i18n 

Source
Expand description

A lightweight internationalization infrastructure for CLI/TUI.

Locale selection follows the POSIX order LC_ALL, then LANG. English and Japanese are supported; unknown locales safely fall back to English. Fluent FTL resources make it possible to add languages without branching through the call sites.

Structs§

Localizer
Message table used in the execution process.

Enums§

Locale
Display locale currently provided by pinto.
Message
Identifier for translatable UI messages.

Functions§

current
Returns the process-local localizer, initialized from the environment on first use.
locale_name_from
Prefer LC_ALL to LANG to choose a non-empty locale name.
localizer_from
Create a localizer from the specified environment values.