src/AcfExportManager.php
public function translateFieldParams(array $field) : array
    {

        $keys = array('prepend', 'append', 'placeholder', 'default_value');

        foreach ($keys as $key) {
            if (!isset($field[$key])) {
                continue;
            }

            $field[$key] = acf_translate($field[$key]);
        }

        if (isset($field['sub_fields']) && is_array($field['sub_fields'])) {
            foreach ($field['sub_fields'] as &$subfield) {
                if (function_exists('\acf_translate_field')) {
                    $subfield = \acf_translate_field($subfield);
                }
            }
        }

        return $field;
    }
public function translateFieldParams(array $field) : array
    {

        $keys = array('prepend', 'append', 'placeholder', 'default_value');

        foreach ($keys as $key) {
            if (!isset($field[$key])) {
                continue;
            }

            $field[$key] = acf_translate($field[$key]);
        }

        if (isset($field['sub_fields']) && is_array($field['sub_fields'])) {
            foreach ($field['sub_fields'] as &$subfield) {
                if (function_exists('\acf_translate_field')) {
                    $subfield = \acf_translate_field($subfield);
                }
            }
        }

        return $field;
    }
public function translateFieldParams ( array $ field ) : array { $ keys = array ( 'prepend' , 'append' , 'placeholder' , 'default_value' ) ; foreach ( $ keys as $ key ) { if ( ! isset ( $ field [ $ key ] ) ) { continue ; } $ field [ $ key ] = acf_translate ( $ field [ $ key ] ) ; } if ( isset ( $ field [ 'sub_fields' ] ) && is_array ( $ field [ 'sub_fields' ] ) ) { foreach ( $ field [ 'sub_fields' ] as & $ subfield ) { if ( function_exists ( '\acf_translate_field' ) ) { $ subfield = \ acf_translate_field ( $ subfield ) ; } } } return $ field ; }
Translate field params
@param  array $field  ACF Field params
@return array         Translated ACF field params
Translate field params