/* Astrion 官网主页多语言字典(zh-CN 为源语言,en-US 为翻译)
* key 与 index.html 中的 data-i18n / data-i18n-html / data-i18n-aria 属性对应:
* data-i18n → textContent 注入(纯文本)
* data-i18n-html → innerHTML 注入(含
/ 等标记,内容为自写可信文案)
* data-i18n-aria → aria-label 注入
* meta.desc 由 site.js 单独处理 。
*/
window.SITE_I18N = {
'zh-CN': {
'meta.desc': 'Astrion 是开源、自托管的智能体工作台:在本机处理你的代码与工作,也可以部署到云端提供多人服务,体验一致。',
'brand.aria': 'Astrion 首页',
'brand.toggleAria': '关闭或开启星空背景',
'brand.toggleTitle': '点击关闭 / 开启星空背景',
'nav.features': '功能',
'nav.docs': '文档',
'hero.sub': '住在你机器上的智能体工作台。开源、自托管,可以处理你的本地代码和工作,也可以部署在云端提供多人服务,体验一致。',
'hero.cloneAria': '复制 git clone 命令',
'hero.docs': '查看文档',
'demo.title': '它工作时的样子',
'demo.sub': '下面是真实运行的 Astrion 界面,接着一份静态演示数据。可以点击切换对话、展开工具记录、打开右侧快捷窗口查看子智能体。',
'demo.iframeTitle': 'Astrion 界面演示',
'demo.note': '演示环境只含静态数据;实际使用由你自己的模型驱动。',
'demo.preview': '点击预览',
'demo.previewLoading': '加载中…',
'features.title': '围绕「放心交给它做事」设计',
'f1.title': '计划 / 询问 / 执行',
'f1.desc': '三种运行模式决定它什么时候动手。
计划模式只出方案,批准后才开始改;
询问模式先讨论清楚再开工;
执行模式直接做完再汇报。',
'f2.title': '沙箱与网络授权',
'f2.desc': '命令默认在操作系统沙箱里执行,写文件、访问网络都要经过授权。
macOS 使用系统沙箱,Windows 通过 WSL2 获得完整隔离;
网络权限单独开关,与文件权限互不影响。',
'f3.title': '修改记录',
'f3.desc': '每一次文件编辑都留下一条 diff:
改了哪个文件、加了几行、删了几行。
按任务逐条查看,也可以单独撤销其中任意一次修改。',
'f4.title': '版本控制',
'f4.desc': '每条消息自动成为一个检查点。
发现方向不对时,回退到任意一条消息之前——
对话和文件一起还原,不用手工收拾残局。',
'faq.title': '常见问题',
'faq1.q': '运行 Astrion 需要什么环境?',
'faq1.a': 'Python 3.9+ 和 Node.js 18+。克隆仓库后安装依赖、构建前端,一条命令启动,默认监听 8091 端口。macOS、Linux、Windows(WSL2)都可以运行。',
'faq2.q': '我的数据存在哪里?',
'faq2.a': '全部在你自己的机器上:对话记录、工作区文件、日志默认放在 ~/.astrion/astrion/ 下,可以通过环境变量整体搬迁。不经过任何第三方服务器。',
'faq3.q': '宿主机模式和 Docker 模式有什么区别?',
'faq3.a': '宿主机模式下 Astrion 直接操作你的本机文件,适合处理日常工作和本地代码;Docker 模式把任务放进容器执行,适合需要隔离或多人共用的部署。两种模式界面与能力一致,数据可以互通。',
'faq4.q': '支持哪些模型?',
'faq4.a': '任何 OpenAI 兼容接口都可以接入:官方 API、聚合网关、本地推理服务都行。主智能体和子智能体可以分别配置不同的模型。',
'faq5.q': '可以部署给多人使用吗?',
'faq5.a': '可以。部署到服务器后自带多用户体系,每人独立工作区,通过浏览器访问,也有 Android 客户端。同一套界面,本机和云端体验一致。',
'faq6.q': '它执行命令安全吗?',
'faq6.a': '有四层控制:权限模式决定哪些操作需要批准;命令默认在 OS 沙箱内运行;网络访问单独授权;所有文件修改留有记录可以随时回退。你可以从「每条命令都要批准」一路调到「完全放开」,粒度自己定。',
'contact.title': '联系我',
'contact.sub': '有问题、想法或合作意向,欢迎来信。',
'contact.copyAria': '复制邮箱地址',
'footer.docs': '文档',
'footer.demo': '演示',
'docs.home': '首页',
'docs.side': '文档',
'docs.navAria': '文档目录',
'docs.pageTitle': '文档 — Astrion',
'docs.loading': '加载中…',
'docs.loadFailedTpl': '文档加载失败({err})。请刷新重试。'
},
'en-US': {
'meta.desc': 'Astrion is an open-source, self-hosted agent workbench: it handles your code and work on your own machine, or deploys to the cloud for multi-user service — the same experience.',
'brand.aria': 'Astrion home',
'brand.toggleAria': 'Toggle the starry background',
'brand.toggleTitle': 'Click to toggle the starry background',
'nav.features': 'Features',
'nav.docs': 'Docs',
'hero.sub': 'The agent workbench that lives on your machine. Open-source and self-hosted — it handles your local code and work, or deploys to the cloud to serve a team, with the same experience.',
'hero.cloneAria': 'Copy git clone command',
'hero.docs': 'Read the Docs',
'demo.title': 'See it at work',
'demo.sub': 'Below is the real Astrion interface running on a static demo dataset. Switch conversations, expand tool records, and open the quick panel on the right to inspect sub agents.',
'demo.iframeTitle': 'Astrion interface demo',
'demo.note': 'The demo contains static data only; real usage is driven by your own models.',
'demo.preview': 'Click to Preview',
'demo.previewLoading': 'Loading…',
'features.title': 'Designed so you can hand it work with confidence',
'f1.title': 'Plan / Ask / Execute',
'f1.desc': 'Three work modes decide when it takes action.
Plan mode only drafts a plan — nothing changes until you approve;
Ask mode discusses first, then starts;
Execute mode gets it done and reports back.',
'f2.title': 'Sandbox & Network Grants',
'f2.desc': 'Commands run inside an OS sandbox by default; writing files or accessing the network requires authorization.
macOS uses the native system sandbox, while Windows gets full isolation through WSL2;
network access is a separate switch, independent of file permissions.',
'f3.title': 'Change Records',
'f3.desc': 'Every file edit leaves a diff:
which file changed, how many lines were added, how many removed.
Review them task by task, or revert any single change on its own.',
'f4.title': 'Version Control',
'f4.desc': 'Every message automatically becomes a checkpoint.
When a direction turns out wrong, roll back to before any message —
conversation and files restore together, no manual cleanup.',
'faq.title': 'Frequently Asked Questions',
'faq1.q': 'What environment does Astrion require?',
'faq1.a': 'Python 3.9+ and Node.js 18+. Clone the repository, install dependencies, build the frontend, and start with a single command — it listens on port 8091 by default. Works on macOS, Linux, and Windows (WSL2).',
'faq2.q': 'Where is my data stored?',
'faq2.a': 'Entirely on your own machine: conversations, workspace files, and logs live under ~/.astrion/astrion/ by default and can be relocated with environment variables. Nothing passes through any third-party server.',
'faq3.q': "What's the difference between host mode and Docker mode?",
'faq3.a': 'In host mode, Astrion works directly on your local files — suited for daily work and local code. Docker mode runs tasks inside containers — suited for isolation or shared deployments. The interface and capabilities are identical, and data interoperates between them.',
'faq4.q': 'Which models are supported?',
'faq4.a': 'Any OpenAI-compatible endpoint works: official APIs, aggregation gateways, or local inference servers. The main agent and sub agents can each be configured with different models.',
'faq5.q': 'Can I deploy it for a team?',
'faq5.a': 'Yes. Once deployed on a server, it comes with a multi-user system — everyone gets their own workspace, accessed through the browser, with an Android client as well. Same interface, same experience locally and in the cloud.',
'faq6.q': 'Is it safe when it executes commands?',
'faq6.a': "Four layers of control: permission modes decide which operations require approval; commands run in an OS sandbox by default; network access is authorized separately; every file change is recorded and can be rolled back. You can tune it from 'approve every command' all the way to 'fully hands-off'.",
'contact.title': 'Get in Touch',
'contact.sub': 'Questions, ideas, or collaboration — feel free to drop a line.',
'contact.copyAria': 'Copy email address',
'footer.docs': 'Docs',
'footer.demo': 'Demo',
'docs.home': 'Home',
'docs.side': 'Docs',
'docs.navAria': 'Documentation contents',
'docs.pageTitle': 'Docs — Astrion',
'docs.loading': 'Loading…',
'docs.loadFailedTpl': 'Failed to load document ({err}). Please refresh and try again.'
}
};