%s
', esc_html__( 'The Adara Translate plugin sends post content to a third-party translation service (Adara Translate) only when an editor clicks the Translate action. The disclosure below is a starting point for your privacy policy.', 'adara-translate' ) ); $content .= sprintf( '%s
', esc_html__( 'Translation service (Adara Translate)', 'adara-translate' ) ); $content .= sprintf( '%s
', esc_html__( 'This site uses the Adara Translate plugin to translate posts and pages. When an editor on this site triggers a translation, the plugin sends the post content (title, excerpt, paragraph and heading text, and the translatable text attributes of supported blocks such as button labels, image alt text and captions, and quote citations) and the chosen target language to the Adara Translate API. The API key configured in the plugin settings is sent in an X-API-Key header to authenticate the request and bill credits to the site owner\'s account.', 'adara-translate' ) ); $content .= sprintf( '%s
', esc_html__( 'Adara Translate routes each request to the translation engine selected in the plugin settings (DeepL, Google Cloud Translation, Microsoft Translator, OpenAI GPT, or Google Gemini). The selected engine processes the post content as a sub-processor in order to generate the translation.', 'adara-translate' ) ); $content .= sprintf( '%s
', esc_html__( 'Adara Translate does not receive site visitor data, comments, account information, or files outside the post content described above. Translation requests are only made server-to-server from this site to Adara Translate; visitors do not interact with Adara Translate directly.', 'adara-translate' ) ); $content .= sprintf( '', esc_html__( 'For more information, see:', 'adara-translate' ), esc_url( 'https://www.adaratranslate.com/privacy' ), esc_html__( 'Adara Translate Privacy Policy', 'adara-translate' ), esc_url( 'https://www.adaratranslate.com/terms' ), esc_html__( 'Adara Translate Terms of Service', 'adara-translate' ) ); wp_add_privacy_policy_content( __( 'Adara Translate', 'adara-translate' ), $content ); } public function enqueue_block_editor_assets() : void { $handle = 'adara-translate-sidebar'; wp_enqueue_script( $handle, ADARA_TRANSLATE_URL . 'assets/js/sidebar.js', [ 'wp-plugins', 'wp-edit-post', 'wp-element', 'wp-components', 'wp-data', 'wp-i18n', 'wp-api-fetch' ], ADARA_TRANSLATE_VERSION, true ); wp_set_script_translations( $handle, 'adara-translate' ); wp_localize_script( $handle, 'adaraTranslateConfig', [ 'languages' => Adara_Translate_Languages::all(), 'configured' => Adara_Translate_Settings::is_configured(), 'settingsUrl' => esc_url_raw( admin_url( 'options-general.php?page=adara-translate' ) ), ] ); } }