Support

Account

Home Forums General Issues Translating ACF form field labels in frontend with WPML Reply To: Translating ACF form field labels in frontend with WPML

  • I fixed it by hardcoding jquery translation-strings 🙂

    Eg:

    <?php
    $my_current_lang = apply_filters( 'wpml_current_language', NULL );
    if($my_current_lang == 'en') {
    ?>
    <script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
    <script>
        $( document ).ready(function() {
    	$("form .class").html($("form .class").html().replace('Original string','New string'));
    </script>
    <?php
    }
    ?>