Expand description
Bilingual message layer for human-facing stderr progress (--lang en|pt, SQLITE_GRAPHRAG_LANG).
Bilingual human-readable message layer.
The CLI chooses language for stderr progress messages via:
- Explicit
--lang en|ptflag - XDG setting
i18n.lang(config set i18n.lang pt) - OS locale (
LC_ALL/LC_MESSAGES/LANG— system env, not product) - Fallback
English
JSON stdout is deterministic and identical across languages.
Modules§
- errors_
msg - Error messages for
AppErrorvariants — always English. - validation
- Localized validation messages for memory fields.
Enums§
Functions§
- current
- Returns the active language, or fallback English if
initwas never called. - error_
prefix - Localized prefix for error messages displayed to the end user.
- init
- Initializes the global language. Subsequent calls are silently ignored (OnceLock semantics) — guaranteeing thread-safety and determinism.
- prune_
dry_ run - Progress message for dry-run preview of prune-relations.
- prune_
requires_ yes - Warning message when –yes is not passed for destructive prune-relations.
- relations_
pruned - Progress message emitted after pruning relationships.
- tr
- Translates a bilingual message by selecting the active variant.