npm.io
62.0.0 • Published 6d ago

@ckeditor/ckeditor5-dev-translations

Licence
GPL-2.0-or-later
Version
62.0.0
Deps
7
Size
57 kB
Vulns
0
Weekly
0
Stars
45

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.