feat: add a network from the chat #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "thelion/add-network"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed in with evrd, the chat can add a network to the user's evrd account and go straight there: "+ add a network" in the picker or
/network add, and an account with no network is asked to add one instead of being sent away.Needs evrd 0.55 or newer (4evrd/evrd#160 lets a web chat's token add and connect a network). Tests: 3 new (78 pass);
pnpm checkok.🤖 Generated with Claude Code
en, de, es, fr, id, it, ja, ms, pt-BR, ro, tr: every label, dialog and /help line, and the lines the chat writes itself (connection, errors, the add-network dialog). IRC syntax, nicks and what the server sends stay as they are. The language is the lang prop, else the visitor's pick in settings (kept with the other settings), else navigator.languages, else English. It's set as lang on the chat's root. Signed in, API calls send X-Evrd-Language so evrd's refusals come back in it too. i18n.js is dependency-free: a catalog per language (English has every key, the others fall back to it), {placeholders} and Intl plurals. Tests check every catalog against English and that switching language changes a system line; English stays the default under node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>