Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/** LAN WebUI settings copy (namespace `lan`); English is the fallback. */
export const lanEn = {
title: "LAN WebUI",
caption: "Access this computer from the same Wi-Fi. Use only on trusted networks; HTTP is not encrypted.",
enable: "Allow LAN connections",
enableHelp: "Restarts with PI-Desktop. Turning it off signs every device out.",
statusOff: "Off",
statusNotRunning: "Not running",
statusLoading: "Checking status…",
statusUnavailable: "Status unavailable",
retry: "Retry",
statusOn_one: "On · {{count}} device",
statusOn_other: "On · {{count}} devices",
network: "Network",
networkHelp: "The address phones on the same Wi-Fi use to reach this computer.",
port: "Port",
localOnly: "Only on this computer",
address: "Address",
addressHint: "Open this address in the browser on your phone.",
copy: "Copy",
copyCode: "Copy code",
copied: "Copied",
copyFailed: "Couldn't copy",
devices: "Devices",
addDevice: "Add device",
noDevices: "No devices paired yet.",
remove: "Remove",
activeAt: "Active {{time}}",
pairTitle: "Add a device",
pairScan: "Scan with your phone camera",
pairQrLabel: "QR code for this device pairing",
pairDescription: "This code lets a device view and change local projects and conversations, including temporary ones. Pairing lasts 30 days.",
pairStepOpen: "On the device, open",
pairStepCode: "Enter this pairing code",
codeExpiresIn: "Expires in {{seconds}}s",
codeExpired: "This code has expired.",
codeLoading: "Generating code…",
newCode: "New code",
waiting: "Waiting for the device…",
close: "Close",
errors: {
PORT_IN_USE: "That port is already in use. Choose another port.",
INVALID_ADDRESS: "That network address is no longer available.",
INVALID_PORT: "Use a port between 1024 and 65535.",
NOT_RUNNING: "Turn the service on first.",
SAVE_FAILED: "Couldn't save the change. Check that the Desktop data folder is writable, then try again.",
FAILED: "The action failed. Try again.",
},
};
export const lanZh: typeof lanEn = {
title: "局域网 WebUI",
caption: "在同一 Wi‑Fi 下访问这台电脑。HTTP 不加密,请仅在可信网络中使用。",
enable: "允许局域网连接",
enableHelp: "随 PI-Desktop 自动启动。手动关闭会让所有设备退出。",
statusOff: "未开启",
statusNotRunning: "未运行",
statusLoading: "正在读取状态…",
statusUnavailable: "无法读取状态",
retry: "重试",
statusOn_one: "运行中 · {{count}} 台设备",
statusOn_other: "运行中 · {{count}} 台设备",
network: "网络",
networkHelp: "同一 Wi‑Fi 下的手机用这个地址访问这台电脑。",
port: "端口",
localOnly: "仅本机可访问",
address: "访问地址",
addressHint: "在手机浏览器中打开这个地址。",
copy: "复制",
copyCode: "复制配对码",
copied: "已复制",
copyFailed: "复制失败",
devices: "设备",
addDevice: "添加设备",
noDevices: "还没有配对的设备。",
remove: "移除",
activeAt: "{{time}}活跃",
pairTitle: "添加设备",
pairScan: "用手机相机扫码",
pairQrLabel: "设备配对二维码",
pairDescription: "持有此码的设备可直接查看并操作本机项目及临时会话。配对有效期为 30 天。",
pairStepOpen: "在设备上打开",
pairStepCode: "输入配对码",
codeExpiresIn: "{{seconds}} 秒后失效",
codeExpired: "配对码已失效。",
codeLoading: "正在生成配对码…",
newCode: "重新生成",
waiting: "等待设备输入配对码…",
close: "关闭",
errors: {
PORT_IN_USE: "该端口已被占用,请换一个端口。",
INVALID_ADDRESS: "该网络地址已不可用。",
INVALID_PORT: "请使用 1024 到 65535 之间的端口。",
NOT_RUNNING: "请先开启服务。",
SAVE_FAILED: "无法保存更改。请确认桌面端数据目录可写后重试。",
FAILED: "操作失败,请重试。",
},
};