Discussions

Ask a Question
Back to All

Javascript API - Modal Translation

How can I translate the Javascript API modal's messages?

I know that using the parameter "text" I can edit the default message. But what about in these cases "If User is already subscribed" and "If User had blocked"?

At this point I'm using something like this:

window._pcq.push(['triggerOptIn',{subscriberSegment: 'homepage', modal: {text: 'Receba alertas sobre nossa promoção!', blackenBackground: true}}]);

Cheers