github Ed1s0nZ/CyberStrikeAI v1.3.20

latest releases: v1.5.14, v1.5.13, v1.5.12...
one month ago

CyberStrikeAI has added frontend internationalization (i18n) support, enabling dynamic language switching in the browser based on user selection without requiring backend route changes or template duplication.

Implementation Approach:
It utilizes the browser UMD version of i18next (loaded via CDN), eliminating the need for build tools. Each language corresponds to a dedicated JSON resource file (e.g., web/static/i18n/zh-CN.json, en-US.json), with keys organized by "module.semantics" (e.g., nav.dashboard, login.submit). Both HTML and JavaScript reference these keys instead of hardcoding Chinese or English text.

Current Capabilities:
Supports switching between Chinese (zh-CN) and English (en-US), with future extensibility for Japanese, Korean, and other languages. Users can change the interface language via the header or system settings. Any untranslated items gracefully fall back to the default Chinese, preventing raw keys from appearing.

Coverage:
Internationalization has been progressively implemented across major modules including Login, Navigation, Dashboard, Chat, Tasks, Vulnerabilities, Knowledge Base, MCP, Roles, and System Settings, covering all visible user-facing text. This incremental approach facilitates ongoing completion and future expansion.


CyberStrikeAI 新增的前端国际化(i18n)支持在浏览器端根据用户选择动态切换界面语言,无需改后端路由或复制模板。

实现方式:采用 i18next 的浏览器 UMD 版本(CDN 引入),不依赖打包工具。每种语言对应一份 JSON 文案文件(如 web/static/i18n/zh-CN.json、en-US.json),按「模块.语义」组织 key(如 nav.dashboard、login.submit);HTML 和 JS 只引用 key,不写死中文/英文。

当前能力:支持中英文(zh-CN / en-US)切换,后续可扩展日文、韩文等。界面语言可在头部或系统设置中切换,未翻译项会回退到默认中文,避免出现原始 key。

覆盖范围:已对登录、导航、仪表盘、对话、任务、漏洞、知识、MCP、角色、系统设置等主要模块的可见文案做国际化,采用渐进式改造,便于后续继续补全和扩展。

Don't miss a new CyberStrikeAI release

NewReleases is sending notifications on new releases.