Automatic translation based on localized fields.
This extension needs to be registered against a Hub with in the Dynamic Content application (Developer -> Extensions), for it to load within that Hub.
- Category: Content Field
- Label: Localization (this will appear as the tab title in the Dashboard)
- Name: localization (needs to be unique with the Hub)
- URL: https://localization.extensions.content.amplience.net
To use the application the following permissions must be enabled:
Note: You can use our deployed version of this extension (builds from the "production" branch) -
https://localization.extensions.content.amplience.net
As this is an open source project you're welcome to host your own "fork" of this project. You can use any standard static hosting service (Netlify, Amplify, Vercel, etc.) if you wish.
Sandbox permissions:
- Allow same origin
Generate a Yandex API Key and pass it to the extension:
{
"TRANSLATION_API_KEY": "<YOUR KEY>"
}
{
"title": "title",
"description": "description",
"allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/localization#/definitions/localized-string"
}
],
"ui:extension": {
"name": "<your name of extension here>"
}
}
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": []
}
This project requires Node 16.x to build. Tested with Node 16.16.0, NPM 8.11.0.
$ npm run start
$ npm run build