Custom MT

Requires VNTranslator version Pro 0.8.6 or later, and Neo 0.8.0 or later. Note: Some parameters are only available in the Pro version.

To open Custom MT:

  • From Launcher: Menubar -> Translator -> Double Click on the Service Name

  • From Settings: Settings -> Translation Services -> Click on the Service Name

The Launcher does not automatically reload the configuration after you save or update Custom MT code. To reload the configuration, switch to another translation service and then back to Custom MT (Custom MT → DeepL Web → Custom MT).

Configuration

Write the Custom MT code using the JSON object structure format:

  • configVersion: number

  • name: string

  • title: string

  • description: string

  • version: string

  • icon: object <default: string>

  • schema: Array of objects - [Schema]

  • formBuilder: Array of objects - [FormBuilder]

  • lang: object <source: Array, target: Array>

    • source: Array of objects <{name: string, value: string}>

    • target: Array of objects <{name: string, value: string}>

  • request: object - [Request&Response]

  • components: object - [Components]

{
    "configVersion": 3,
    "name": "openai",
    "title": "OpenAI",
    "description": "Translate natural language text",
    "version": "1.0",
    "icon": {
        "default": "openai.png"
    },
    "schema": [],
    "formBuilder": [],
    "lang": {
        "source": [
            { "name": "Japanese", "value": "japanese"}
        ],
        "target": [
            {"name": "English", "value": "english"}
        ]
    },
    "request": {},
    "components": {}
}