BabelTranslate v1 System Settings

BabelTranslate contains some system settings in the babeltranslate namespace.

These are available in the MODX system settings panel.

Key Name Description Default
babeltranslate.debug Debug Log debug information in MODX error log. No
babeltranslate.deepl_auth_key DeepL API Auth Key The DeepL Auth Key to access the DeepL API. -
babeltranslate.translate_duplicate Translate Babel Duplicate Translate the duplicate Babel resource directly. No
babeltranslate.translate_resource_cb_fields Translate ContentBlocks Fields JSON encoded object of ContentBlocks fields that need to be translated. Each record contains the ContentBlocks field ID as a key, the value contains several options: type is optional (it is otherwise set by the ContentBlocks field type) and can be filled with text, single and grid. nested is optional (it is otherwise set by the ContentBlocks field type) and it can contain the key of the nested values in the ContentBlocks value. fields is optional (it defaults to ["value"]) and it can be filled with an array of field names which will be translated. Example: {"1":{"type":"text"},"8":{"type":"single","fields":["title"]},"9":{"type":"grid","nested":"images",fields":["title","description"]}} -
babeltranslate.translate_resource_fields Translate Fields Comma-separated list of resource fields that need to be translated. pagetitle, longtitle, content
babeltranslate.translate_resource_tvs Translate TVs JSON encoded object of template variables that need to be translated. Each record contains the template variable name as a key, the value contains several options: type is optional (it is otherwise set by the template variable type) and can be filled with text, single and grid. fields is optional (it defaults to ["value"]) and it can be filled with an array of field names which will be translated. Example: {"rte":{"type":"text"},"migx":{"type":"grid","fields":["title","description"]},"imageplus":{"type":"single","fields":["title","description"]}} -