translation-utils
v1.0.0
Published
Common utilities for Contentstack translation apps (json-rte, entry helpers, schema & asset helpers, general helpers).
Maintainers
Readme
translation-utils
Common utilities for Contentstack translation apps.
Structure:
- src/json/json-rte.js
- src/entry/entry-utils.js
- src/assets/asset-utils.js
- src/schema/schema-utils.js
- src/general/general-utils.js
Install:
npm install path/to/translation-utils or publish to npm.
Basic usage:
const { jsonRte, entry, assets, schema, general } = require("translation-utils");
const html = jsonRte.jsonToHtml(rteJson, { customTags: ['Cloudinary'] });
entry.removePath({ data: entryObj, path: 'ACL' });