@antelopejs/dms-lang

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

Language and translation management for the AntelopeJS DMS: coverage overview, translation matrix, translation queue and public translation workspaces.

原始使用文档
文档目录7 节
  1. What it does
  2. Install
  3. Quick start
  4. Requirements
  5. Documentation
  6. Contributing
  7. License

@antelopejs/dms-lang

npm License Discord Documentation

Language and translation management for the AntelopeJS DMS.

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

What it does

  • Reads every locale file the dashboard loads and shows how complete each language is, with a namespace × language heatmap.
  • Edits every key side by side in a translation matrix, with placeholder checks, filters and CSV export.
  • Walks one language key by key in a translation queue, with the base text and the other languages for context.
  • Hosts translation workspaces for your other apps and serves them as public JSON at /i18n/<workspace>/<locale>.json.

Install

Run the AntelopeJS CLI from the root of a project that already loads @antelopejs/dms:

ajs project modules add @antelopejs/dms-lang

Quick start

The command adds an @antelopejs/dms-lang entry to antelope.config.ts. The module starts read-only. To allow writes on the process that edits translations, set editable: true in that entry:

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

Restart the backend, then the frontend, and open Modules › Translations (/modules/lang/overview). To edit your own frontend module's locale files, register it with options: { dmsI18nAppLayer: true }, as Installation shows.

Requirements

PackageSupportedTested with
@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

The module also needs a DMS backend in a release that implements the @antelopejs/interface-dms range above. It needs the @antelopejs/dms-frontend renderer in the range that engines["@antelopejs/dms-frontend"] of frontend-vue/package.json declares. The ajs dms CLI refuses to build the module with a renderer outside that range.

Documentation

The canonical guide lives in docs/, including the supported extension boundary. There is no separate DMS Lang interface package. The package also ships the dms-lang Claude Code skill in skills/, declared under antelopeJs.skills.

Contributing

Read CONTRIBUTING.md before opening a pull request. The playground connects to MongoDB at mongodb://localhost:27017. To use another instance, set MONGO_URL.

pnpm install
pnpm dev            # playground backend
pnpm frontend:dev   # dashboard, in a second terminal
pnpm lint
pnpm typecheck
pnpm test
Repository notes
  • The backend registers the frontend-vue module through AddFrontendModule with the vue renderer. frontend-vue/dms.frontend.ts registers every component of app/components and app/build/components under the DmsLang component prefix, and the backend pages name them, as in CustomComponent("DmsLangTranslationMatrix").
  • dms.frontend.build.ts auto-imports app/composables, app/utils and app/types. The code in app/build/ is private and imported by path.
  • The pages read their data with the DMS's useApiData, which the server render hands to the browser with the page. The module declares the public language files (/i18n/**) to the frontend server as a backend prefix without a session (backendProxies).
  • The module compiles against the published @antelopejs/interface-dms. @antelopejs/dms and @antelopejs/dms-frontend are development dependencies for the tests and the playground.
  • pnpm test:unit runs the locale discovery and write target suites of src/test and the node:test suites in tests. The other src/test suites run with pnpm test only, since an interface refuses to load outside the AntelopeJS runtime. pnpm test:frontend checks frontend-vue against the installed DMS frontend layer with ajs dms verify-source.

License

Apache-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 是什么?

Language and translation management for the AntelopeJS DMS: coverage overview, translation matrix, translation queue and public translation workspaces.

如何安装 @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 和提交记录判断。