Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-warner/dc-extensions-localisation
Translating can be long and painful, fast track your inline localisable text with our auto translating custom extension for Dynamic Content CMS.
https://github.com/dev-warner/dc-extensions-localisation
amplience dc-extensions-sdk dynamic-content json-schema
Last synced: 14 days ago
JSON representation
Translating can be long and painful, fast track your inline localisable text with our auto translating custom extension for Dynamic Content CMS.
- Host: GitHub
- URL: https://github.com/dev-warner/dc-extensions-localisation
- Owner: dev-warner
- Created: 2019-11-13T13:35:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T13:20:40.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T15:37:12.437Z (over 1 year ago)
- Topics: amplience, dc-extensions-sdk, dynamic-content, json-schema
- Language: JavaScript
- Homepage:
- Size: 3.49 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Amplience Dynamic Content](header.png)](https://amplience.com/dynamic-content)
# dc-extension-localise
![Travis](https://img.shields.io/travis/dev-warner/dc-extensions-localisation)
> Translating can be long and painful fast track your inline localisable text with our auto translating custom extension.
## dev
```bash
$ npm run start
```## build
```bash
$ npm run build
```![Translate](translate.gif)
## Register the extension
- Name your extension
- Add your extension url
- Generate API Key from [here](https://translate.yandex.com/developers/keys)
- Add under installation params called TRANSLATION_API_KEY### Here is a snippet so you can add your extension easily
```json
{
"title": "title",
"description": "description",
"allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/localization#/definitions/localized-string"
}
],
"ui:extension": {
"name": ""
}
}
```### Example Installation Params
```json
{
"TRANSLATION_API_KEY": "trnsl.1.1.20181113T13154q3434df54b6aa.051c8d933f00f1315ba7esaf3497d2922dace4eb64a1"
}
```## Content Type Schema
Here is a basic schema just including the translate custom extension.
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://localise.com","title": "Title",
"description": "Description","allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/core#/definitions/content"
}
],"type": "object",
"properties": {
"localise": {
"title": "title",
"description": "description",
"allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/localization#/definitions/localized-string"
}
],
"ui:extension": {
"name": ""
}
}
},
"propertyOrder": []
}
```