function my_woocommerce_add_error( $error ) {
return str_replace('An account is already registered with your email address. Please log in','sdfhasd il address. Please log in.',$error);
}
add_filter( 'woocommerce_add_error', 'my_woocommerce_add_error' );
/** Replace 'An account is already registered with your email address. Please log in.' **/
add_filter( 'woocommerce_registration_error_email_exists', function() {
return 'Este înregistrat deja un cont cu adresa ta de e-mail. <a href="#" class="showlogin">Te rugăm să te autentifici.</a>';
} );