FAQs
FAQsCan the plugin translate properties in shortcodes?

Can the plugin translate properties in shortcodes?

With the Classic Editor, or with Gutenberg's HTML block, the whole HTML blob will be translated at once, including any shortcode inside. So you can customize the prompt to say "also translate the properties inside shortcodes" and expect the AI service to understand that.

For instance, given the following shortcode:

[contact-form-7 id="42" title="Contact us" button_label="Send message"]

The AI service will translate the title and button_label attribute values (e.g. to Spanish: title="Contáctanos" and button_label="Enviar mensaje"), while keeping the shortcode tag, the id attribute, and the overall structure intact.

If the shortcode has properties of type string that must not be translated (such as slugs, identifiers, CSS classes, etc.), the prompt can be more specific, naming the exact properties to translate — e.g. "translate the title and button_label properties inside shortcodes" — so the AI service leaves the other string properties untouched.