@antelopejs/dms-lang

中文文档
0.5.1发布于 2026/11/05Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 1747

羚羊JS DMS的语言和翻译管理:覆盖概况,翻译矩阵,翻译队列和公共翻译工作空间.

中文使用文档
文档目录7 节
  1. 它会做什么
  2. 安装
  3. 快开始
  4. 所需资源
  5. 文档
  6. 捐款
  7. 许可证

@antelopejs/dms-lang

npm License Discord Documentation

语文和翻译管理 羚羊JS 隐形物。 。 。 .

The Lang overview of the customer-portal workspace: coverage figures, languages ranked by coverage and a namespace heatmap

它会做什么

  • 读取每个地块文件仪表板载荷,并显示每种语言的完成程度,带有命名空间×语言热图.
  • 在一个翻译矩阵中同时编辑每个密钥,并带有占位符检查,过滤和CSV导出.
  • 在翻译队列中逐个按键行走一个语言密钥,其中以基文本和其他语言为上下文.
  • 主办您其他应用程序的翻译工作空间,并作为公共JSON服务 /i18n/<workspace>/<locale>.json。 。 。 .

安装

从已加载的工程根端运行 AtelopeJS CLI @antelopejs/dms数字 :

ajs project modules add @antelopejs/dms-lang

快开始

命令添加一个 @antelopejs/dms-lang 条目为 antelope.config.ts。模块开始只读。 允许在编辑翻译的过程上写入, 设置 editable: true 在该条目中:

"@antelopejs/dms-lang": {
  source: { type: "package", package: "@antelopejs/dms-lang", version: "<latest>" },
  config: {
    editable: true,
  },
},

重新打开后端, 然后打开前端 模块 翻译 (单位:千美元)/modules/lang/overview) (中文(简体) ). 要编辑您自己的前端模块的本地化文件, 请用 options: { dmsI18nAppLayer: true },作为 安装 显示.

所需资源

软件包支助测试过
@antelopejs/interface-api>=0.2.0 <1.0.00.2.0
@antelopejs/interface-api-util>=0.3.0 <1.0.00.3.0
@antelopejs/interface-core>=0.4.0 <1.0.00.4.0
@antelopejs/interface-dms>=0.12.0 <1.0.00.12.0

模块还需要一个执行 @antelopejs/interface-dms 范围。 这需要 @antelopejs/dms-frontend 渲染器在 engines["@antelopejs/dms-frontend"] 联 合 国 frontend-vue/package.json 声明 这个 ajs dms CLI拒绝使用该范围外的渲染器来构建模块.

文档

警犬导师住在 docs/,包括 支持扩展边界。没有单独的 DMS Lang 接口软件包。 包裹还装了 dms-lang Claude代码技巧 skills/,在 antelopeJs.skills。 。 。 .

捐款

读取 捐款额 在打开拉出请求之前。 游乐场连接蒙戈DB mongodb://localhost:27017。要使用另一个实例,设置 MONGO_URL。 。 。 .

pnpm install
pnpm dev            # playground backend
pnpm frontend:dev   # dashboard, in a second terminal
pnpm lint
pnpm typecheck
pnpm test
仓库说明
  • 后端登录 frontend-vue 模块通过 AddFrontendModule 与 vue 变形器. frontend-vue/dms.frontend.ts 登记 app/components 财务报告和审定财务报表 app/build/components 下划线 DmsLang 组件前缀,以及后端的页面名称,如 CustomComponent("DmsLangTranslationMatrix")。 。 。 .
  • dms.frontend.build.ts 自动进口 app/composables, (中文(简体) ), app/utils 财务报告和审定财务报表 app/types中的代码 app/build/ 是私人的,通过路径导入.
  • 这些页面读取了移民局的数据 useApiData,服务器会随页面向浏览器提供手。 模块宣布了公共语言文件(/i18n/**)到前端服务器作为后端前缀,没有会话(backendProxies) (中文(简体) ).
  • 模块对照已出版 @antelopejs/interface-dms。 。 。 . @antelopejs/dms 财务报告和审定财务报表 @antelopejs/dms-frontend 测试和操场的发展依赖性.
  • pnpm test:unit 运行本地址发现并写入目标套件 src/test 编辑 node:test 套间 tests。另一个 src/test 套间运行 pnpm test 只因为一个接口拒绝在羚羊JS运行时间之外加载. pnpm test:frontend 检查 frontend-vue 对已安装的 DMS 前端层 ajs dms verify-source。 。 。 .

许可证

阿帕奇 - 2.0

版本与发布记录

@antelopejs/dms-lang 共发布 17 个版本,首次发布于 2026/09/17;过去 12 个月发布了 17 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.5.1latest2026/11/054 天前
0.5.02026/11/027 天前
0.4.12026/10/2416 天前
0.4.02026/10/2317 天前
0.3.12026/10/2020 天前
0.3.02026/10/1823 天前

关于 @antelopejs/dms-lang 的常见问题

@antelopejs/dms-lang 是什么?

羚羊JS DMS的语言和翻译管理:覆盖概况,翻译矩阵,翻译队列和公共翻译工作空间.

如何安装 @antelopejs/dms-lang?

在项目目录运行 npm install @antelopejs/dms-lang,或使用 pnpm add / yarn add / bun add。

@antelopejs/dms-lang 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@antelopejs/dms-lang 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@antelopejs/dms-lang 可以商用吗?

@antelopejs/dms-lang 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@antelopejs/dms-lang 的下载量有多少?

根据 npm 官方下载统计,@antelopejs/dms-lang 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,747 次,日均约 58 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@antelopejs/dms-lang 还在维护吗?

最新版本 0.5.1 发布于 2026/11/05(4 天前);至今共发布 17 个版本,其中过去 12 个月发布了 17 个;首次发布于 2026/09/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。