Viewing 2 replies - 1 through 2 (of 2 total)
  • I use this code, It’s worked perfectly for me

    function filter_ninja_forms_localize_fields( $field ) { 
    
        if( is_array($field['settings']) && array_key_exists("label", $field['settings']) ){
            $field['settings']['label'] = esc_html__( $field['settings']['label'], "keyboardpro"); 
        }
    
        return $field; 
    }
    add_filter( 'ninja_forms_localize_fields', 'filter_ninja_forms_localize_fields', 10, 1 ); 
    Plugin Contributor Kyle B. Johnson

    (@kbjohnson90)

    We recently added a form setting for this.
    In the builder, go to the Advance tab, then Display Settings, then under the Advanced section you will see a group of options for setting these values specifically.

    For developers, here is the Ninja Forms THREE update for translating the required fields string: https://ninjaforms.com/docs/edit-translate-fields-marked-required/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How translate label with WPML’ is closed to new replies.