You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): add a locale authority for primary TUI guidance #2554
The original bug is still present: a fresh TUI starts with Chinese welcome copy, while slash autocomplete and help switch to English. The RFC now settles the broader product boundary, so this issue can fix the inconsistency without inventing a Desktop dependency or a global command-line flag.
Decision
do not add a discoverable maka --locale option
use MAKA_LOCALE=zh, en, or auto as the explicit CLI-client preference
resolve auto from LC_ALL, then LC_MESSAGES, then LANG
do not read Desktop settings; the TUI is an independent client
keep command tokens, model and provider names, paths, user content, model output, JSONL, protocol values, logs, and exit semantics locale-independent
reject an unsupported explicit MAKA_LOCALE value with a clear configuration error
Proposed slice
Add a small CLI locale resolver based on the shared core locale model, pass the resolved locale into the TUI, and move the primary guidance into a typed, CLI-owned catalog:
welcome and first-send guidance
slash autocomplete descriptions
help headings, command descriptions, and keybinding guidance
Picker copy, onboarding, runtime notices, error presentation, and non-interactive CLI help remain separate follow-ups.
Acceptance criteria
explicit zh and en select the corresponding TUI guidance
auto follows the supported POSIX locale variables in the documented priority order
slash command tokens remain unchanged
the welcome surface, autocomplete, and help use the same resolved locale
machine-readable and Runtime Host contracts do not change
focused tests cover explicit selection, auto fallback, invalid configuration, and both catalogs
changed the title [-]fix(cli): localize slash-command guidance in the Chinese TUI[/-][+]feat(cli): add a locale authority for primary TUI guidance[/+]on Aug 11, 2026
Activity
[-]fix(cli): localize slash-command guidance in the Chinese TUI[/-][+]feat(cli): add a locale authority for primary TUI guidance[/+]feat(cli): add a TUI locale authority (#2691)