V13 - Auto Translation on publish
s
Has anyone ever built a "auto translation" on publish. Client has a Belgian site. They want the BE-FR French pages to auto translate and create a BE-NL version on publish. I envision a publish event, checking for a switch (do not auto translate) to allow for manual overrides, but for the most part it will throw the node name, all text fields marked as variants to a translation api and then publish the BE-NL version. Then on subsequent publishes just update. Anyone done anything similar? My worries / concern would be the block lists - not sure if I try and deal with a blob of json or loop through looking for fields.
k
Suppose the first question is translate how ? , e.g via some sort of machine translation? As I wrote it my answer would be this is possible with translation manager (with a bit of code) you could start the process in a publish notification and push it to any of the supported translation providers (which includes machine ones like Google, Microsoft, deeply and openai). Translation process can be set to be 'automatic' that is content is published when the translation comes back. This handles the block lists and other properties.
If you wanted to do it on your own you are right the the block list bit would be the hardest bit, especially if you want to handle nesting (blocks within blocks) and all properties inside the blocks.
10 Views