Skip to content

FAQ

We're collecting the questions we get most often into a FAQ. If your question is not in the list, please reach out to us via treehillstudio-support@modmore.com and we would be glad to help.

What are the additional cost for the DeepL API?

If you translate only 500.000 characters per month with BabelTranslate, you can use the DeepL API Free. Otherwise, you need to use the DeepL API Pro, the cost of which is flexible based on the translated characters.

How can I prevent HTML tag attributes from being translated?

This can be achieved with the MODX system setting babeltranslate.deepl_text_translation_options. They must be filled with { "tag_handling": "html" }.

How can I prevent text from being translated within pre-tags?

This can be achieved with the MODX system setting babeltranslate.deepl_text_translation_options. They must be filled with { "ignore_tags": "pre" }.

I have several languages on my website, and I don't want to open each of the resources and manually translate them into the other languages.

It is possible to translate a whole tree with the use of Babel: https://mikrobi.github.io/babel/usage/ (Search for 'Create translations of child resources' and/or 'Create multiple translations') and BabelTranslate can translate the content during that process when babeltranslate.translate_duplicate is enabled.

Link targets have to be transformed with a plugin from a tag like [[~12345]] to something like this: [[~[[BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`12345`]]]]. This is currently not part of the BabelTranslate code.