Skip to content

Translating can be long and painful, fast track your inline localisable text with our auto translating custom extension for Dynamic Content CMS.

Notifications You must be signed in to change notification settings

dev-warner/dc-extensions-localisation

Repository files navigation

Amplience Dynamic Content

dc-extension-localise

Travis

Translating can be long and painful fast track your inline localisable text with our auto translating custom extension.

dev

$ npm run start

build

$ npm run build

Translate

Register the extension

  • Name your extension
  • Add your extension url
  • Generate API Key from here
  • Add under installation params called TRANSLATION_API_KEY

Here is a snippet so you can add your extension easily

{
    "title": "title",
    "description": "description",
    "allOf": [
        {
            "$ref": "http://bigcontent.io/cms/schema/v1/localization#/definitions/localized-string"
        }
    ],
    "ui:extension": {
        "name": "<your name of extension here>"
    }
}

Example Installation Params

{
    "TRANSLATION_API_KEY": "trnsl.1.1.20181113T13154q3434df54b6aa.051c8d933f00f1315ba7esaf3497d2922dace4eb64a1"
}

Content Type Schema

Here is a basic schema just including the translate custom extension.

{
    "$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": "<your name of extension here>"
            }
        }
    },
    "propertyOrder": []
}

About

Translating can be long and painful, fast track your inline localisable text with our auto translating custom extension for Dynamic Content CMS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published