Polylang string translation problem
-
Hi there,
I have a problem with a string translation.
I have a “TC Custom Javascript” plugin (WordPress) to add a welcome text to video header on my website (video header is without text by default).
My JS code inside this plugin looks like this:
(function($){ "use strict" if( $('body').hasClass('home') ) { var mainTitle = 'Witamy'; var subTitle = 'Działka inwestycyjna położona przy ul. Witebskiej 6 w Bydgoszczy'; var buttonURL = '#primary'; var buttonLabel = 'Zaczynajmy'; var heroContent = '<div class="slide-inner">'; heroContent += '<div class="contain text-slider">'; heroContent += '<h2 class="maintitle">'+mainTitle+'</h2>'; heroContent += '<p class="subtitle">'+subTitle+'</p>'; heroContent += '</div>'; heroContent += '<a href="'+buttonURL+'" class="roll-button button-slider" target="_top">'+buttonLabel+'</a>'; heroContent += '</div>'; $('.sydney-hero-area').append(heroContent); } })(jQuery);However, there are no options under “WordPress > Languages > Strings translations” to translate these strings generated by custom JS plugin (mainTitle, subTitle).
Is it possible to translate my welcome text using “pll_the_languages” inside custom JS plugin or elsewhere?
Please help.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Polylang string translation problem’ is closed to new replies.