<?php
/**
 * Automatic translation handler for Google Translate requests.
 *
 * @package WPR_Translate
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Run automatic translation using Google Translate.
 *
 * @param int    $post_id      Post ID.
 * @param string $language     Language code.
 * @param array  $payload      Structured translation payload.
 * @param string $payload_json JSON encoded payload.
 *
 * @return true|WP_Error
 */
function wpr_translate_auto_translate_post_google( $post_id, $language, $payload = array(), $payload_json = '' ) {
    // Silence unused variables until the integration is implemented.
    unset( $post_id, $language, $payload, $payload_json );

    return new WP_Error( 'wpr_translate_google_not_implemented', __( 'Google Translate integration is not implemented yet.', 'wpr-translate' ) );
}
