@ckeditor/ckeditor5-dev-translations

中文文档
63.1.3发布于 2026/11/09GPL-2.0-or-laterES Module近 30 天下载 18.1万

Tools for managing CKEditor 5 translation files.

原始使用文档
文档目录3 节
  1. Usage
  2. Changelog
  3. License

CKEditor 5 translation tools

npm version CircleCI

Tools for managing CKEditor 5 translation files.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.

Usage

The package exposes the following functions:

  • findMessages() — parses a source file and finds messages to be localized, that is calls of the t() function.
  • synchronizeTranslations() — asynchronously synchronizes generated TypeScript translation files with translation contexts (contexts.json files) in the given packages: it creates missing translation files, adds missing entries, and removes unused ones.
  • moveTranslations() — asynchronously moves the requested translations and contexts between packages.
  • readTranslationFile() — asynchronously reads a generated TypeScript translation file.
  • serializeTranslationFile() — serializes a translation dictionary as a generated TypeScript translation file.

You can read more about localizing the editor in the Setting the UI language guide.

Changelog

See the CHANGELOG.md file.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file.

版本与发布记录

@ckeditor/ckeditor5-dev-translations 共发布 222 个版本,首次发布于 2022/12/20;过去 12 个月发布了 80 个版本。

版本发布日期距今
63.1.3latest2026/11/09今天
63.1.22026/11/063 天前
54.11.0latest-v542026/11/036 天前
63.1.12026/11/027 天前
61.4.0latest-v612026/10/2812 天前
63.1.02026/10/2812 天前

其他发布通道:next → 54.2.1,alpha → 57.0.0-alpha.1,latest-v61 → 61.4.0,latest-v54 → 54.11.0。

关于 @ckeditor/ckeditor5-dev-translations 的常见问题

@ckeditor/ckeditor5-dev-translations 是什么?

Tools for managing CKEditor 5 translation files.

如何安装 @ckeditor/ckeditor5-dev-translations?

在项目目录运行 npm install @ckeditor/ckeditor5-dev-translations,或使用 pnpm add / yarn add / bun add。

@ckeditor/ckeditor5-dev-translations 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ckeditor__ckeditor5-dev-translations 是否存在。

@ckeditor/ckeditor5-dev-translations 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ckeditor/ckeditor5-dev-translations 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=26.10.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@ckeditor/ckeditor5-dev-translations 可以商用吗?

@ckeditor/ckeditor5-dev-translations 使用 GPL-2.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以兼容的 GPL 许可开源。仅在内部使用、不对外分发时不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@ckeditor/ckeditor5-dev-translations 的下载量有多少?

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

@ckeditor/ckeditor5-dev-translations 还在维护吗?

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