<?php

namespace MercadoPago\Woocommerce\Translations;

use ArrayAccess;
use MercadoPago\Woocommerce\Helpers\Links;

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

class AdminTranslations
{
    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $notices = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $plugin = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $order = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $headerSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $credentialsSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $supportSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $storeSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $gatewaysSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $basicGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $creditsGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $customGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $ticketGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $pseGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $pixGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $yapeGatewaySettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $testModeSettings = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $configurationTips = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $credentialsLinkComponents = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $validateCredentials = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $updateCredentials = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $updateStore = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $currency = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $statusSync = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $countries = [];

    // TODO(PHP8.2): Change type hint from phpdoc to native
    /**
     * @var array|ArrayAccess
     */
    public $refund = [];

    public array $links;

    /**
     * Translations constructor
     *
     * @param Links $links
     */
    public function __construct(Links $links)
    {
        $this->links = $links->getLinks();

        $this->setNoticesTranslations();
        $this->setPluginSettingsTranslations();
        $this->setHeaderSettingsTranslations();
        $this->setCredentialsSettingsTranslations();
        $this->setSupportSettingsTranslations();
        $this->setStoreSettingsTranslations();
        $this->setOrderSettingsTranslations();
        $this->setGatewaysSettingsTranslations();
        $this->setBasicGatewaySettingsTranslations();
        $this->setCreditsGatewaySettingsTranslations();
        $this->setCustomGatewaySettingsTranslations();
        $this->setTicketGatewaySettingsTranslations();
        $this->setPseGatewaySettingsTranslations();
        $this->setPixGatewaySettingsTranslations();
        $this->setYapeGatewaySettingsTranslations();
        $this->setTestModeSettingsTranslations();
        $this->setConfigurationTipsTranslations();
        $this->setCredentialsLinkComponentsTranslations();
        $this->setUpdateCredentialsTranslations();
        $this->setValidateCredentialsTranslations();
        $this->setUpdateStoreTranslations();
        $this->setCurrencyTranslations();
        $this->setStatusSyncTranslations();
        $this->setCountriesTranslations();
        $this->setRefundTranslations();
    }

    /**
     * Set notices translations
     *
     * @return void
     */
    private function setNoticesTranslations(): void
    {
        $missWoocommerce = sprintf(
            __('The Mercado Pago module needs an active version of %s in order to work!', 'woocommerce-mercadopago'),
            '<a target="_blank" href="https://wordpress.org/extend/plugins/woocommerce/">WooCommerce</a>'
        );

        $this->notices = [
            'miss_woocommerce'          => $missWoocommerce,
            'php_wrong_version'         => __('Mercado Pago payments for WooCommerce requires PHP version 7.4 or later. Please update your PHP version.', 'woocommerce-mercadopago'),
            'missing_curl'              => __('Mercado Pago Error: PHP Extension CURL is not installed.', 'woocommerce-mercadopago'),
            'missing_gd_extensions'     => __('Mercado Pago Error: PHP Extension GD is not installed. Installation of GD extension is required to send QR Code Pix by email.', 'woocommerce-mercadopago'),
            'activate_woocommerce'      => __('Activate WooCommerce', 'woocommerce-mercadopago'),
            'install_woocommerce'       => __('Install WooCommerce', 'woocommerce-mercadopago'),
            'see_woocommerce'           => __('See WooCommerce', 'woocommerce-mercadopago'),
            'miss_pix_text'             => __('Please note that to receive payments via Pix at our checkout, you must have a Pix key registered in your Mercado Pago account.', 'woocommerce-mercadopago'),
            'miss_pix_link'             => __('Register your Pix key at Mercado Pago.', 'woocommerce-mercadopago'),
            'dismissed_review_title'    => sprintf(__('%s, help us improve the experience we offer', 'woocommerce-mercadopago'), wp_get_current_user()->display_name),
            'dismissed_review_subtitle' => __('Share your opinion with us so that we improve our product and offer the best payment solution.', 'woocommerce-mercadopago'),
            'dismissed_review_button'   => __('Rate the plugin', 'woocommerce-mercadopago'),
            'saved_cards_title'         => __('Enable payments via Mercado Pago account', 'woocommerce-mercadopago'),
            'saved_cards_subtitle'      => __('When you enable this function, your customers pay faster using their Mercado Pago accounts.</br>The approval rate of these payments in your store can be 25% higher compared to other payment methods.', 'woocommerce-mercadopago'),
            'saved_cards_button'        => __('Activate', 'woocommerce-mercadopago'),
            'missing_translation'       => __("Our plugin does not support the language you've chosen, so we've switched it to the English default. If you prefer, you can also select Spanish or Portuguese (Brazilian).", 'woocommerce-mercadopago'),
            'action_feedback_title'     => __('You activated Mercado Pago’s plug-in', 'woocommerce-mercadopago'),
            'action_feedback_subtitle'  => __('Follow the instructions below to integrate your store with Mercado Pago and start to sell.', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set plugin settings translations
     *
     * @return void
     */
    private function setPluginSettingsTranslations(): void
    {
        $this->plugin = [
            'set_plugin'     => __('Set plugin', 'woocommerce-mercadopago'),
            'payment_method' => __('Payment methods', 'woocommerce-mercadopago'),
            'plugin_manual'  => __('Plugin manual', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set order settings translations
     *
     * @return void
     */
    private function setOrderSettingsTranslations(): void
    {
        $this->order = [
            'cancel_order'                       => __('Cancel order', 'woocommerce-mercadopago'),
            'order_note_commission_title'        => __('Mercado Pago commission:', 'woocommerce-mercadopago'),
            'order_note_commission_tip'          => __('Represents the commission configured on plugin settings.', 'woocommerce-mercadopago'),
            'order_note_discount_title'          => __('Mercado Pago discount:', 'woocommerce-mercadopago'),
            'order_note_discount_tip'            => __('Represents the discount configured on plugin settings.', 'woocommerce-mercadopago'),
            'order_note_installments_fee_tip'    => __('Represents the installment fee charged by Mercado Pago.', 'woocommerce-mercadopago'),
            'order_note_installments_fee_title'  => __('Mercado Pago Installment Fee:', 'woocommerce-mercadopago'),
            'order_note_total_paid_amount_tip'   => __('Represents the total purchase plus the installment fee charged by Mercado Pago.', 'woocommerce-mercadopago'),
            'order_note_total_paid_amount_title' => __('Mercado Pago Total:', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set headers settings translations
     *
     * @return void
     */
    private function setHeaderSettingsTranslations(): void
    {
        $titleHeader = sprintf(
            '%s %s %s <br/> %s %s',
            __('Accept', 'woocommerce-mercadopago'),
            __('payments', 'woocommerce-mercadopago'),
            __('safely', 'woocommerce-mercadopago'),
            __('with', 'woocommerce-mercadopago'),
            __('Mercado Pago', 'woocommerce-mercadopago')
        );

        $installmentsDescription = sprintf(
            '%s <b>%s</b> %s <b>%s</b> %s',
            __('Choose', 'woocommerce-mercadopago'),
            __('when you want to receive the money', 'woocommerce-mercadopago'),
            __('from your sales and if you want to offer', 'woocommerce-mercadopago'),
            _x('interest-free installments', 'admin settings description', 'woocommerce-mercadopago'),
            __('to your clients.', 'woocommerce-mercadopago')
        );



        $this->headerSettings = [
            'ssl'                      => __('SSL', 'woocommerce-mercadopago'),
            'curl'                     => __('Curl', 'woocommerce-mercadopago'),
            'gd_extension'             => __('GD Extensions', 'woocommerce-mercadopago'),
            'title_header'             => $titleHeader,
            'title_requirements'       => __('Technical requirements', 'woocommerce-mercadopago'),
            'title_installments'       => __('Collections and installments', 'woocommerce-mercadopago'),
            'title_questions'          => __('More information', 'woocommerce-mercadopago'),
            'description_ssl'          => __('Implementation responsible for transmitting data to Mercado Pago in a secure and encrypted way.', 'woocommerce-mercadopago'),
            'description_curl'         => __('It is an extension responsible for making payments via requests from the plugin to Mercado Pago.', 'woocommerce-mercadopago'),
            'description_gd_extension' => __('These extensions are responsible for the implementation and operation of Pix in your store.', 'woocommerce-mercadopago'),
            'description_installments' => $installmentsDescription,
            'description_questions'    => __('Check our documentation to learn more about integrating our plug-in.', 'woocommerce-mercadopago'),
            'button_installments'      => __('Set deadlines and fees', 'woocommerce-mercadopago'),
            'button_questions'         => __('Go to documentation', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set credentials settings translations
     *
     * @return void
     */
    private function setCredentialsSettingsTranslations(): void
    {

        $this->credentialsSettings = [
            'public_key'                        => __('Public Key', 'woocommerce-mercadopago'),
            'access_token'                      => __('Access Token', 'woocommerce-mercadopago'),
            'close_modal'                       => __('Close', 'woocommerce-mercadopago'),
            'title_credentials'                 => __('1. Link your store to a Mercado Pago account', 'woocommerce-mercadopago'),
            'linked_account'                    => __('Linked account', 'woocommerce-mercadopago'),
            'more_information'                  => __('For more information, check the', 'woocommerce-mercadopago'),
            'title_credentials_prod'            => __('Production credentials', 'woocommerce-mercadopago'),
            'title_credentials_test'            => __('Test credentials', 'woocommerce-mercadopago'),
            'first_text_subtitle_credentials'   => __('To start selling, ', 'woocommerce-mercadopago'),
            'second_text_subtitle_credentials'  => __('in the fields below. If you don’t have credentials yet, you’ll have to create them from this link.', 'woocommerce-mercadopago'),
            'subtitle_credentials_test'         => __('Enable Mercado Pago checkouts for test purchases in the store.', 'woocommerce-mercadopago'),
            'subtitle_credentials_prod'         => __('Enable Mercado Pago checkouts to receive real payments in the store.', 'woocommerce-mercadopago'),
            'placeholder_credentials'           => __('Paste the key here', 'woocommerce-mercadopago'),
            'show_access_token'                 => __('Show Access Token', 'woocommerce-mercadopago'),
            'hide_access_token'                 => __('Hide Access Token', 'woocommerce-mercadopago'),
            'button_credentials'                => __('Continue', 'woocommerce-mercadopago'),
            'card_info_subtitle'                => __('You have to enter your production credentials to start selling with Mercado Pago.', 'woocommerce-mercadopago'),
            'card_info_button_text'             => __('Enter credentials', 'woocommerce-mercadopago'),
            'card_homolog_title'                => __('Activate your credentials to be able to sell', 'woocommerce-mercadopago'),
            'card_homolog_subtitle'             => __('Credentials are codes that you must enter to enable sales. Go below on Activate Credentials. On the next screen, use again the Activate Credentials button and fill in the fields with the requested information.', 'woocommerce-mercadopago'),
            'card_homolog_button_text'          => __('Activate credentials', 'woocommerce-mercadopago'),
            'text_link_credentials'             => __('copy and paste your production credentials ', 'woocommerce-mercadopago'),
            'title_invalid_credentials'         => __('Your WooCommerce store can’t receive payments', 'woocommerce-mercadopago'),
            'subtitle_invalid_credentials'      => __('To start selling again, update your store’s link to Mercado Pago.', 'woocommerce-mercadopago'),
            'button_invalid_credentials'        => __('Update link', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set store settings translations
     *
     * @return void
     */
    private function setStoreSettingsTranslations(): void
    {
        $helperUrl = sprintf(
            '%s %s <a class="mp-settings-blue-text" target="_blank" href="%s">%s</a>.',
            __('Add the URL to receive payments notifications.', 'woocommerce-mercadopago'),
            __('Find out more information in the', 'woocommerce-mercadopago'),
            $this->links['docs_ipn_notification'],
            __('guides', 'woocommerce-mercadopago')
        );

        $helperIntegrator = sprintf(
            '%s %s <a class="mp-settings-blue-text" target="_blank" href="%s">%s</a>.',
            __('If you are a Mercado Pago Certified Partner, make sure to add your integrator_id.', 'woocommerce-mercadopago'),
            __('If you do not have the code, please', 'woocommerce-mercadopago'),
            $this->links['docs_developers_program'],
            __('request it now', 'woocommerce-mercadopago')
        );

        $this->storeSettings = [
            'title_store'                   => __('2. Customize your business’ information', 'woocommerce-mercadopago'),
            'title_info_store'              => __('Your store information', 'woocommerce-mercadopago'),
            'title_advanced_store'          => __('Advanced integration options (optional)', 'woocommerce-mercadopago'),
            'title_debug'                   => __('Debug and Log Mode', 'woocommerce-mercadopago'),
            'subtitle_store'                => __('Fill out the following details to have a better experience and offer your customers more information.', 'woocommerce-mercadopago'),
            'subtitle_name_store'           => __('Name of your store in your client\'s invoice', 'woocommerce-mercadopago'),
            'subtitle_activities_store'     => __('Identification in Activities of Mercado Pago', 'woocommerce-mercadopago'),
            'subtitle_advanced_store'       => __('For further integration of your store with Mercado Pago (IPN, Certified Partners, Debug Mode)', 'woocommerce-mercadopago'),
            'subtitle_category_store'       => __('Store category', 'woocommerce-mercadopago'),
            'subtitle_url'                  => __('URL for IPN', 'woocommerce-mercadopago'),
            'subtitle_integrator'           => __('Integrator ID', 'woocommerce-mercadopago'),
            'subtitle_debug'                => __('We record your store\'s actions in order to provide a better assistance.', 'woocommerce-mercadopago'),
            'placeholder_name_store'        => __('Ex: Mary\'s Store', 'woocommerce-mercadopago'),
            'placeholder_activities_store'  => __('Ex: Mary Store', 'woocommerce-mercadopago'),
            'placeholder_category_store'    => __('Select', 'woocommerce-mercadopago'),
            'placeholder_url'               => __('Ex: https://examples.com/my-custom-ipn-url', 'woocommerce-mercadopago'),
            'options_url'                   => __('Add plugin default params', 'woocommerce-mercadopago'),
            'placeholder_integrator'        => __('Ex: 14987126498', 'woocommerce-mercadopago'),
            'accordion_advanced_store_show' => __('Show advanced options', 'woocommerce-mercadopago'),
            'accordion_advanced_store_hide' => __('Hide advanced options', 'woocommerce-mercadopago'),
            'button_store'                  => __('Save and continue', 'woocommerce-mercadopago'),
            'helper_name_store'             => __('If this field is empty, the purchase will be identified as Mercado Pago.', 'woocommerce-mercadopago'),
            'helper_activities_store'       => __('In Activities, you will view this term before the order number', 'woocommerce-mercadopago'),
            'helper_category_store'         => __('Select "Other categories" if you do not find the appropriate category.', 'woocommerce-mercadopago'),
            'helper_integrator_link'        => __('request it now.', 'woocommerce-mercadopago'),
            'helper_url'                    => $helperUrl,
            'helper_integrator'             => $helperIntegrator,
            'title_cron_config'             => __('Order tracking', 'woocommerce-mercadopago'),
            'subtitle_cron_config'          => __('Keep your Mercado Pago orders updated by selecting the desired frequency. We recommend enabling this option only in the event of automatic order update failures.', 'woocommerce-mercadopago'),
            'fisrt_option_cron_config'      => __('Disable', 'woocommerce-mercadopago'),
            'second_option_cron_config'     => __('Every 5 minutes', 'woocommerce-mercadopago'),
            'third_option_cron_config'      => __('Every 10 minutes', 'woocommerce-mercadopago'),
            'fourth_option_cron_config'     => __('Every 15 minutes', 'woocommerce-mercadopago'),
            'fifth_option_cron_config'      => __('Every 30 minutes', 'woocommerce-mercadopago'),
            'sixth_option_cron_config'      => __('Every 1 hour', 'woocommerce-mercadopago'),
            'select_sync_cron_config '      => __('Select', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set gateway settings translations
     *
     * @return void
     */
    private function setGatewaysSettingsTranslations(): void
    {
        $this->gatewaysSettings = [
            'title_payments'    => __('3. Activate and set up payment methods', 'woocommerce-mercadopago'),
            'subtitle_payments' => __('Select the payment method you want to appear in your store to activate and set it up.', 'woocommerce-mercadopago'),
            'settings_payment'  => __('Settings', 'woocommerce-mercadopago'),
            'button_payment'    => __('Continue', 'woocommerce-mercadopago'),
            'enabled'           => __('Enabled', 'woocommerce-mercadopago'),
            'disabled'          => __('Disabled', 'woocommerce-mercadopago'),
            'empty_credentials' => __('Configure your credentials to enable Mercado Pago payment methods.', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set basic settings translations
     *
     * @return void
     */
    private function setBasicGatewaySettingsTranslations(): void
    {
        $enabledDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('The checkout is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $enabledDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('The checkout is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $autoReturnDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('The buyer', 'woocommerce-mercadopago'),
            __('will be automatically redirected to the store', 'woocommerce-mercadopago')
        );

        $autoReturnDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('The buyer', 'woocommerce-mercadopago'),
            __('will not be automatically redirected to the store', 'woocommerce-mercadopago')
        );


        $binaryModeDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Pending payments', 'woocommerce-mercadopago'),
            __('will be automatically declined', 'woocommerce-mercadopago')
        );

        $binaryModeDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Pending payments', 'woocommerce-mercadopago'),
            __('will not be automatically declined', 'woocommerce-mercadopago')
        );

        $this->basicGatewaySettings = [
            'gateway_title'                             => __('Mercado Pago', 'woocommerce-mercadopago'),
            'gateway_description'                       => __('Your clients finalize their payments in Mercado Pago.', 'woocommerce-mercadopago'),
            'gateway_method_title'                      => __('Mercado Pago - Checkout Pro', 'woocommerce-mercadopago'),
            'gateway_method_description'                => __('Your clients finalize their payments in Mercado Pago.', 'woocommerce-mercadopago'),
            'header_title'                              => __('Checkout Pro', 'woocommerce-mercadopago'),
            'header_description'                        => __('With Checkout Pro you sell with all the safety inside Mercado Pago environment.', 'woocommerce-mercadopago'),
            'card_settings_title'                       => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'                    => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'                 => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                             => __('Enable the checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'                          => __('By disabling it, you will disable all payments from Mercado Pago Checkout at Mercado Pago website by redirect.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled'              => $enabledDescriptionsEnabled,
            'enabled_descriptions_disabled'             => $enabledDescriptionsDisabled,
            'title_title'                               => __('Title in the store Checkout', 'woocommerce-mercadopago'),
            'title_description'                         => __('Change the display text in Checkout, maximum characters: 85', 'woocommerce-mercadopago'),
            'title_default'                             => __('Mercado Pago', 'woocommerce-mercadopago'),
            'title_desc_tip'                            => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'currency_conversion_title'                 => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle'              => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_descriptions_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_descriptions_disabled' => $currencyConversionDescriptionsDisabled,
            'ex_payments_title'                         => __('Choose the payment methods you accept in your store', 'woocommerce-mercadopago'),
            'ex_payments_description'                   => __('Enable the payment methods available to your clients.', 'woocommerce-mercadopago'),
            'ex_payments_type_credit_card_label'        => __('Credit Cards', 'woocommerce-mercadopago'),
            'ex_payments_type_debit_card_label'         => __('Debit Cards', 'woocommerce-mercadopago'),
            'ex_payments_type_other_label'              => __('Other Payment Methods', 'woocommerce-mercadopago'),
            'installments_title'                        => __('Maximum number of installments', 'woocommerce-mercadopago'),
            'installments_description'                  => __('What is the maximum quota with which a customer can buy?', 'woocommerce-mercadopago'),
            'installments_options_1'                    => __('1 installment', 'woocommerce-mercadopago'),
            'installments_options_2'                    => __('2 installments', 'woocommerce-mercadopago'),
            'installments_options_3'                    => __('3 installments', 'woocommerce-mercadopago'),
            'installments_options_4'                    => __('4 installments', 'woocommerce-mercadopago'),
            'installments_options_5'                    => __('5 installments', 'woocommerce-mercadopago'),
            'installments_options_6'                    => __('6 installments', 'woocommerce-mercadopago'),
            'installments_options_10'                   => __('10 installments', 'woocommerce-mercadopago'),
            'installments_options_12'                   => __('12 installments', 'woocommerce-mercadopago'),
            'installments_options_15'                   => __('15 installments', 'woocommerce-mercadopago'),
            'installments_options_18'                   => __('18 installments', 'woocommerce-mercadopago'),
            'installments_options_24'                   => __('24 installments', 'woocommerce-mercadopago'),
            'advanced_configuration_title'              => __('Advanced settings', 'woocommerce-mercadopago'),
            'advanced_configuration_description'        => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'method_title'                              => __('Payment experience', 'woocommerce-mercadopago'),
            'method_description'                        => __('Define what payment experience your customers will have, whether inside or outside your store.', 'woocommerce-mercadopago'),
            'method_options_redirect'                   => __('Redirect', 'woocommerce-mercadopago'),
            'method_options_modal'                      => __('Modal', 'woocommerce-mercadopago'),
            'auto_return_title'                         => __('Return to the store', 'woocommerce-mercadopago'),
            'auto_return_subtitle'                      => __('Do you want your customer to automatically return to the store after payment?', 'woocommerce-mercadopago'),
            'auto_return_descriptions_enabled'          => $autoReturnDescriptionsEnabled,
            'auto_return_descriptions_disabled'         => $autoReturnDescriptionsDisabled,
            'success_url_title'                         => __('Success URL', 'woocommerce-mercadopago'),
            'success_url_description'                   => __('Choose the URL that we will show your customers when they finish their purchase.', 'woocommerce-mercadopago'),
            'failure_url_title'                         => __('Payment URL rejected', 'woocommerce-mercadopago'),
            'failure_url_description'                   => __('Choose the URL that we will show to your customers when we refuse their purchase. Make sure it includes a message appropriate to the situation and give them useful information so they can solve it.', 'woocommerce-mercadopago'),
            'pending_url_title'                         => __('Payment URL pending', 'woocommerce-mercadopago'),
            'pending_url_description'                   => __('Choose the URL that we will show to your customers when they have a payment pending approval.', 'woocommerce-mercadopago'),
            'binary_mode_title'                         => __('Automatic decline of payments without instant approval', 'woocommerce-mercadopago'),
            'binary_mode_subtitle'                      => __('Enable it if you want to automatically decline payments that are not instantly approved by banks or other institutions.', 'woocommerce-mercadopago'),
            'binary_mode_default'                       => __('Debit, Credit and Invoice in Mercado Pago environment.', 'woocommerce-mercadopago'),
            'binary_mode_descriptions_enabled'          => $binaryModeDescriptionsEnabled,
            'binary_mode_descriptions_disabled'         => $binaryModeDescriptionsDisabled,
            'discount_title'                            => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'                      => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'                   => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'                          => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'                    => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'                 => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'invalid_back_url'                          => __('This seems to be an invalid URL', 'woocommerce-mercadopago'),
        ];
        $this->basicGatewaySettings  = array_merge($this->basicGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set credits settings translations
     *
     * @return void
     */
    private function setCreditsGatewaySettingsTranslations(): void
    {
        $gatewayDescriptionEnabled = sprintf(
            '%s <b>%s</b>.',
            __('“Installments without cards through Mercado Pago” is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $gatewayDescriptionDisabled = sprintf(
            '%s <b>%s</b>.',
            __('“Installments without cards through Mercado Pago” is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $bannerDescriptionEnabled = sprintf(
            '%s <b>%s</b>.',
            __('“Up to 12 installments without cards through Mercado Pago” is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $bannerDescriptionDisabled = sprintf(
            '%s <b>%s</b>.',
            __('“Up to 12 installments without cards through Mercado Pago” is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $this->creditsGatewaySettings = [
            'gateway_title'                             => __('Payments without a Mercado Pago card', 'woocommerce-mercadopago'),
            'gateway_description'                       => __('Your customers finish their payments on Mercado Pago with a credit line.', 'woocommerce-mercadopago'),
            'gateway_method_title'                      => __('Mercado Pago - Checkout Pro Pagos sin Tarjeta', 'woocommerce-mercadopago'),
            'gateway_method_description'                => __('Your customers finish their payments on Mercado Pago with a credit line.', 'woocommerce-mercadopago'),
            'header_title'                              => __('Up to 12 installments without cards through Mercado Pago', 'woocommerce-mercadopago'),
            'header_description'                        => __('With this alternative, you’ll be able to sell in installments without cards and receive the money immediately with the same fees as with credit cards. Your sales are protected and guaranteed by Mercado Pago.', 'woocommerce-mercadopago'),
            'card_settings_title'                       => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'                    => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'                 => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                             => __('Activate the installments without cards in the checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'                          => __('Activate this feature to reach more buyers. It will be available in your store\'s checkout.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled'              => $gatewayDescriptionEnabled,
            'enabled_descriptions_disabled'             => $gatewayDescriptionDisabled,
            'enabled_toggle_title'                      => __('Checkout visualization', 'woocommerce-mercadopago'),
            'enabled_toggle_subtitle'                   => __('Check below how this feature will be displayed to your customers:', 'woocommerce-mercadopago'),
            'enabled_toggle_footer'                     => __('Checkout Preview', 'woocommerce-mercadopago'),
            'enabled_toggle_pill_text'                  => __('PREVIEW', 'woocommerce-mercadopago'),
            'title_title'                               => __('Title in the checkout', 'woocommerce-mercadopago'),
            'title_description'                         => __('We recommend using the default title. Maximum characters: 85.', 'woocommerce-mercadopago'),
            'title_default'                             => __('Checkout without card', 'woocommerce-mercadopago'),
            'title_desc_tip'                            => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'currency_conversion_title'                 => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle'              => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_descriptions_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_descriptions_disabled' => $currencyConversionDescriptionsDisabled,
            'credits_banner_title'                      => __('Promote the payment of your products with Mercado Pago', 'woocommerce-mercadopago'),
            'credits_banner_subtitle'                   => __('Activate this promotional banner to offer the option of paying in installments without cards through Mercado Pago within product pages.', 'woocommerce-mercadopago'),
            'credits_banner_descriptions_enabled'       => $bannerDescriptionEnabled,
            'credits_banner_descriptions_disabled'      => $bannerDescriptionDisabled,
            'credits_banner_desktop'                    => __('Banner on the product page | Computer version', 'woocommerce-mercadopago'),
            'credits_banner_cellphone'                  => __('Banner on the product page | Cellphone version', 'woocommerce-mercadopago'),
            'credits_banner_toggle_computer'            => __('Computer', 'woocommerce-mercadopago'),
            'credits_banner_toggle_mobile'              => __('Mobile', 'woocommerce-mercadopago'),
            'credits_banner_toggle_title'               => __('Display in your product pages', 'woocommerce-mercadopago'),
            'credits_banner_toggle_subtitle'            => __('Below you can preview how the banner will be displayed to your customers:', 'woocommerce-mercadopago'),
            'advanced_configuration_title'              => __('Advanced settings', 'woocommerce-mercadopago'),
            'advanced_configuration_description'        => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'discount_title'                            => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'                      => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'                   => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'                          => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'                    => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'                 => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'tooltip_component_title'                   => __('Choose how to promote “Pagos sin Tarjeta de Mercado Pago” on your store', 'woocommerce-mercadopago'),
            'tooltip_component_desc'                    => __('You can only select one alternative and you may edit it whenever you want.', 'woocommerce-mercadopago'),
            'tooltip_component_example'                 => __('Example:', 'woocommerce-mercadopago')
        ];
        $this->creditsGatewaySettings  = array_merge($this->creditsGatewaySettings, $this->setSupportLinkTranslations());
        $this->creditsGatewaySettings = array_merge($this->creditsGatewaySettings, $this->setCreditsTooltipSelectionTranslations());
    }

    /**
     * Set credits tooltip-selection translations
     *
     * @return array
     */
    private function setCreditsTooltipSelectionTranslations(): array
    {
        $tooltipComponentOption1 = sprintf(
            '<b>%s</b> %s',
            __('Up to 12 installments without cards', 'woocommerce-mercadopago'),
            __('through Mercado Pago. Learn more', 'woocommerce-mercadopago')
        );

        $tooltipComponentOption2 = sprintf(
            '<b>%s</b> %s',
            __('Buy now, pay later', 'woocommerce-mercadopago'),
            __('through Mercado Pago. Learn more', 'woocommerce-mercadopago')
        );

        $tooltipComponentOption3 = sprintf(
            '%s <b>%s</b>. %s',
            __('With Mercado Pago,', 'woocommerce-mercadopago'),
            __('get it now and pay month by month', 'woocommerce-mercadopago'),
            __(' Learn more', 'woocommerce-mercadopago')
        );

        $tooltipComponentOption4 = sprintf(
            '<b>%s</b> %s',
            __('Pay in up to 12 installments', 'woocommerce-mercadopago'),
            __('without credit card. Learn more', 'woocommerce-mercadopago')
        );

        return [
            'tooltip_component_option1'                 => $tooltipComponentOption1,
            'tooltip_component_option2'                 => $tooltipComponentOption2,
            'tooltip_component_option3'                 => $tooltipComponentOption3,
            'tooltip_component_option4'                 => $tooltipComponentOption4,
        ];
    }

    /**
     * Set custom settings translations
     *
     * @return void
     */
    private function setCustomGatewaySettingsTranslations(): void
    {
        $enabledDescriptionsEnabledAll = sprintf(
            '%s <b>%s</b>.',
            __('Transparent Checkout for credit or debit cards is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $enabledDescriptionsDisabledAll = sprintf(
            '%s <b>%s</b>.',
            __('Transparent Checkout for credit or debit cards is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $enabledDescriptionsEnabledMLB = sprintf(
            '%s <b>%s</b>.',
            __('Transparent Checkout for credit cards is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $enabledDescriptionsDisabledMLB = sprintf(
            '%s <b>%s</b>.',
            __('Transparent Checkout for credit cards is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $walletButtonDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Payments via Mercado Pago accounts are', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $walletButtonDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Payments via Mercado Pago accounts are', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $binaryModeDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Pending payments', 'woocommerce-mercadopago'),
            __('will be automatically declined', 'woocommerce-mercadopago')
        );

        $binaryModeDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Pending payments', 'woocommerce-mercadopago'),
            __('will not be automatically declined', 'woocommerce-mercadopago')
        );

        $this->customGatewaySettings = [
            'gateway_title_ALL'                         => __('Credit or debit card', 'woocommerce-mercadopago'),
            'gateway_title_MLB'                         => __('Credit card', 'woocommerce-mercadopago'),
            'gateway_description'                       => __('Payments without leaving your store with our customizable checkout', 'woocommerce-mercadopago'),
            'gateway_method_title'                      => __('Mercado Pago - Checkout API', 'woocommerce-mercadopago'),
            'gateway_method_description'                => __('Payments without leaving your store with our customizable checkout', 'woocommerce-mercadopago'),
            'header_title_ALL'                          => __('Transparent Checkout | Credit or debit card', 'woocommerce-mercadopago'),
            'header_title_MLB'                          => __('Transparent Checkout | Credit card', 'woocommerce-mercadopago'),
            'header_description'                        => __('With the Transparent Checkout, you can sell inside your store environment, without redirection and with the security from Mercado Pago.', 'woocommerce-mercadopago'),
            'card_settings_title'                       => __('Mercado Pago Plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'                    => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'                 => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                             => __('Enable the checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'                          => __('By disabling it, you will disable all credit cards payments from Mercado Pago Transparent Checkout.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled_ALL'          => $enabledDescriptionsEnabledAll,
            'enabled_descriptions_disabled_ALL'         => $enabledDescriptionsDisabledAll,
            'enabled_descriptions_enabled_MLB'          => $enabledDescriptionsEnabledMLB,
            'enabled_descriptions_disabled_MLB'         => $enabledDescriptionsDisabledMLB,
            'title_title'                               => __('Title in the store Checkout', 'woocommerce-mercadopago'),
            'title_description'                         => __('Change the display text in Checkout, maximum characters: 85', 'woocommerce-mercadopago'),
            'title_desc_tip'                            => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'card_info_fees_title'                      => __('Installments Fees', 'woocommerce-mercadopago'),
            'card_info_fees_subtitle'                   => __('Set installment fees and whether they will be charged from the store or from the buyer.', 'woocommerce-mercadopago'),
            'card_info_fees_button_url'                 => __('Set fees', 'woocommerce-mercadopago'),
            'currency_conversion_title'                 => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle'              => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_descriptions_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_descriptions_disabled' => $currencyConversionDescriptionsDisabled,
            'wallet_button_title'                       => __('Payments via Mercado Pago account', 'woocommerce-mercadopago'),
            'wallet_button_subtitle'                    => __('Your customers pay faster with saved cards, money balance or other available methods in their Mercado Pago accounts.', 'woocommerce-mercadopago'),
            'wallet_button_descriptions_enabled'        => $walletButtonDescriptionsEnabled,
            'wallet_button_descriptions_disabled'       => $walletButtonDescriptionsDisabled,
            'wallet_button_preview_description'         => __('Check an example of how it will appear in your store:', 'woocommerce-mercadopago'),
            'advanced_configuration_title'              => __('Advanced configuration of the personalized payment experience', 'woocommerce-mercadopago'),
            'advanced_configuration_subtitle'           => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'binary_mode_title'                         => __('Automatic decline of payments without instant approval', 'woocommerce-mercadopago'),
            'binary_mode_subtitle'                      => __('Enable it if you want to automatically decline payments that are not instantly approved by banks or other institutions.', 'woocommerce-mercadopago'),
            'binary_mode_descriptions_enabled'          => $binaryModeDescriptionsEnabled,
            'binary_mode_descriptions_disabled'         => $binaryModeDescriptionsDisabled,
            'discount_title'                            => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'                      => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'                   => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'                          => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'                    => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'                 => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
        ];
        $this->customGatewaySettings  = array_merge($this->customGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set ticket settings translations
     *
     * @return void
     */
    private function setTicketGatewaySettingsTranslations(): void
    {
        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $this->ticketGatewaySettings = [
            'gateway_title'                => __('Invoice', 'woocommerce-mercadopago'),
            'gateway_description'          => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'method_title'                 => __('Mercado Pago - Checkout API Invoice', 'woocommerce-mercadopago'),
            'header_title'                 => __('Transparent Checkout | Invoice or Loterica', 'woocommerce-mercadopago'),
            'header_description'           => __('With the Transparent Checkout, you can sell inside your store environment, without redirection and all the safety from Mercado Pago.', 'woocommerce-mercadopago'),
            'card_settings_title'          => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'       => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'    => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                => __('Enable the Checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'             => __('By disabling it, you will disable all invoice payments from Mercado Pago Transparent Checkout.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled' => __('The transparent checkout for tickets is <b>enabled</b>.', 'woocommerce-mercadopago'),
            'enabled_descriptions_disabled' => __('The transparent checkout for tickets is <b>disabled</b>.', 'woocommerce-mercadopago'),
            'title_title'                  => __('Title in the store Checkout', 'woocommerce-mercadopago'),
            'title_description'            => __('Change the display text in Checkout, maximum characters: 85', 'woocommerce-mercadopago'),
            'title_default'                => __('Invoice', 'woocommerce-mercadopago'),
            'title_desc_tip'               => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'currency_conversion_title'    => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle' => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_disabled' => $currencyConversionDescriptionsDisabled,
            'date_expiration_title'        => __('Payment Due', 'woocommerce-mercadopago'),
            'date_expiration_description'  => __('In how many days will cash payments expire.', 'woocommerce-mercadopago'),
            'advanced_title_title'         => __('Advanced configuration of the cash payment experience', 'woocommerce-mercadopago'),
            'advanced_description_title'   => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'stock_reduce_title'           => __('Reduce inventory', 'woocommerce-mercadopago'),
            'stock_reduce_subtitle'        => __('Activates inventory reduction during the creation of an order, whether or not the final payment is credited. Disable this option to reduce it only when payments are approved.', 'woocommerce-mercadopago'),
            'stock_reduce_enabled'         => __('Reduce inventory is <b>enabled</b>.', 'woocommerce-mercadopago'),
            'stock_reduce_disabled'        => __('Reduce inventory is <b>disabled</b>.', 'woocommerce-mercadopago'),
            'type_payments_title'          => __('Payment methods', 'woocommerce-mercadopago'),
            'type_payments_description'    => __('Enable the available payment methods', 'woocommerce-mercadopago'),
            'type_payments_desctip'        => __('Choose the available payment methods in your store.', 'woocommerce-mercadopago'),
            'type_payments_label'          => __('All payment methods', 'woocommerce-mercadopago'),
            'discount_title'               => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'         => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'      => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'             => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'       => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'    => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
        ];
        $this->ticketGatewaySettings  = array_merge($this->ticketGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set PSE settings translations
     *
     * @return void
     */
    private function setPseGatewaySettingsTranslations(): void
    {
        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $this->pseGatewaySettings = [
            'gateway_title'                => __('PSE', 'woocommerce-mercadopago'),
            'gateway_description'          => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'method_title'                 => __('Mercado Pago - Checkout API PSE', 'woocommerce-mercadopago'),
            'header_title'                 => __('Transparent Checkout PSE', 'woocommerce-mercadopago'),
            'header_description'           => __('With the Transparent Checkout, you can sell inside your store environment, without redirection and all the safety from Mercado Pago.', 'woocommerce-mercadopago'),
            'card_settings_title'          => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'       => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'    => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                => __('Enable the Checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'             => __('By deactivating it, you will disable PSE payments from Mercado Pago Transparent Checkout.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled' => __('The transparent checkout for PSE is <b>enabled</b>.', 'woocommerce-mercadopago'),
            'enabled_descriptions_disabled' => __('The transparent checkout for PSE is <b>disabled</b>.', 'woocommerce-mercadopago'),
            'title_title'                  => __('Title in the store Checkout', 'woocommerce-mercadopago'),
            'title_description'            => __('Change the display text in Checkout, maximum characters: 85', 'woocommerce-mercadopago'),
            'title_default'                => __('PSE', 'woocommerce-mercadopago'),
            'title_desc_tip'               => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'currency_conversion_title'    => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle' => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_disabled' => $currencyConversionDescriptionsDisabled,
            'advanced_title_title'         => __('Advanced configuration of the PSE payment experience', 'woocommerce-mercadopago'),
            'advanced_description_title'   => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'stock_reduce_title'           => __('Reduce inventory', 'woocommerce-mercadopago'),
            'stock_reduce_subtitle'        => __('Activates inventory reduction during the creation of an order, whether or not the final payment is credited. Disable this option to reduce it only when payments are approved.', 'woocommerce-mercadopago'),
            'stock_reduce_enabled'         => __('Reduce inventory is <b>enabled</b>.', 'woocommerce-mercadopago'),
            'stock_reduce_disabled'        => __('Reduce inventory is <b>disabled</b>.', 'woocommerce-mercadopago'),
            'type_payments_title'          => __('Payment methods', 'woocommerce-mercadopago'),
            'type_payments_description'    => __('Enable the available payment methods', 'woocommerce-mercadopago'),
            'type_payments_desctip'        => __('Choose the available payment methods in your store.', 'woocommerce-mercadopago'),
            'type_payments_label'          => __('All payment methods', 'woocommerce-mercadopago'),
            'discount_title'               => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'         => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'      => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'             => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'       => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'    => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
        ];
        $this->pseGatewaySettings  = array_merge($this->pseGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set pix settings translations
     *
     * @return void
     */
    private function setPixGatewaySettingsTranslations(): void
    {
        $enabledDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('The transparent checkout for Pix payment is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $enabledDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('The transparent checkout for Pix payment is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );

        $stepsStepTwoText = sprintf(
            '%s <b>%s</b> %s <b>%s</b>.',
            __('Go to the', 'woocommerce-mercadopago'),
            __('Your Profile', 'woocommerce-mercadopago'),
            __('area and choose the', 'woocommerce-mercadopago'),
            __('Your Pix Keys section', 'woocommerce-mercadopago')
        );

        $this->pixGatewaySettings = [
            'gateway_title'                             => __('Pix', 'woocommerce-mercadopago'),
            'gateway_description'                       => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'gateway_method_title'                      => __('Mercado Pago - Checkout API Pix', 'woocommerce-mercadopago'),
            'gateway_method_description'                => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'header_title'                              => __('Transparent Checkout | Pix', 'woocommerce-mercadopago'),
            'header_description'                        => __('With the Transparent Checkout, you can sell inside your store environment, without redirection and all the safety from Mercado Pago.', 'woocommerce-mercadopago'),
            'card_settings_title'                       => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'                    => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'                 => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                             => __('Enable the checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'                          => __('By disabling it, you will disable all Pix payments from Mercado Pago Transparent Checkout.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled'              => $enabledDescriptionsEnabled,
            'enabled_descriptions_disabled'             => $enabledDescriptionsDisabled,
            'title_title'                               => __('Title in the store Checkout', 'woocommerce-mercadopago'),
            'title_description'                         => __('Change the display text in Checkout, maximum characters: 85', 'woocommerce-mercadopago'),
            'title_default'                             => __('Pix', 'woocommerce-mercadopago'),
            'title_desc_tip'                            => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'expiration_date_title'                     => __('Expiration for payments via Pix', 'woocommerce-mercadopago'),
            'expiration_date_description'               => __('Set the limit in minutes for your clients to pay via Pix.', 'woocommerce-mercadopago'),
            'expiration_date_options_15_minutes'        => __('15 minutes', 'woocommerce-mercadopago'),
            'expiration_date_options_30_minutes'        => __('30 minutes (recommended)', 'woocommerce-mercadopago'),
            'expiration_date_options_60_minutes'        => __('60 minutes', 'woocommerce-mercadopago'),
            'expiration_date_options_12_hours'          => __('12 hours', 'woocommerce-mercadopago'),
            'expiration_date_options_24_hours'          => __('24 hours', 'woocommerce-mercadopago'),
            'expiration_date_options_2_days'            => __('2 days', 'woocommerce-mercadopago'),
            'expiration_date_options_3_days'            => __('3 days', 'woocommerce-mercadopago'),
            'expiration_date_options_4_days'            => __('4 days', 'woocommerce-mercadopago'),
            'expiration_date_options_5_days'            => __('5 days', 'woocommerce-mercadopago'),
            'expiration_date_options_6_days'            => __('6 days', 'woocommerce-mercadopago'),
            'expiration_date_options_7_days'            => __('7 days', 'woocommerce-mercadopago'),
            'currency_conversion_title'                 => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle'              => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_descriptions_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_descriptions_disabled' => $currencyConversionDescriptionsDisabled,
            'card_info_title'                           => __('Would you like to know how Pix works?', 'woocommerce-mercadopago'),
            'card_info_subtitle'                        => __('We have a dedicated page where we explain how it works and its advantages.', 'woocommerce-mercadopago'),
            'card_info_button_text'                     => __('Find out more about Pix', 'woocommerce-mercadopago'),
            'advanced_configuration_title'              => __('Advanced configuration of the Pix experience', 'woocommerce-mercadopago'),
            'advanced_configuration_subtitle'           => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'discount_title'                            => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'                      => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'                   => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'                          => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'                    => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'                 => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'steps_title'                               => __('To activate Pix, you must have a key registered in Mercado Pago.', 'woocommerce-mercadopago'),
            'steps_step_one_text'                       => __('Download the Mercado Pago app on your cell phone.', 'woocommerce-mercadopago'),
            'steps_step_two_text'                       => $stepsStepTwoText,
            'steps_step_three_text'                     => __('Choose which data to register as Pix keys. After registering, you can set up Pix in your checkout.', 'woocommerce-mercadopago'),
            'steps_observation_one'                     => __('Remember that, for the time being, the Central Bank of Brazil is open Monday through Friday, from 9am to 6pm.', 'woocommerce-mercadopago'),
            'steps_observation_two'                     => __('If you requested your registration outside these hours, we will confirm it within the next business day.', 'woocommerce-mercadopago'),
            'steps_button_about_pix'                    => __('Learn more about Pix', 'woocommerce-mercadopago'),
            'steps_observation_three'                   => __('If you have already registered a Pix key at Mercado Pago and cannot activate Pix in the checkout, ', 'woocommerce-mercadopago'),
            'steps_link_title_one'                      => __('click here.', 'woocommerce-mercadopago'),
        ];
        $this->pixGatewaySettings  = array_merge($this->pixGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set yape settings translations
     *
     * @return void
     */
    private function setYapeGatewaySettingsTranslations(): void
    {
        $enabledDescriptionsEnabled = sprintf(
            '%s <b>%s</b> %s.',
            __('Checkout API is', 'woocommerce-mercadopago'),
            __('active', 'woocommerce-mercadopago'),
            __('for payments with Yape', 'woocommerce-mercadopago'),
        );

        $enabledDescriptionsDisabled = sprintf(
            '%s <b>%s</b> %s.',
            __('Checkout API is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago'),
            __('for payments with Yape', 'woocommerce-mercadopago'),
        );

        $currencyConversionDescriptionsEnabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('enabled', 'woocommerce-mercadopago')
        );

        $currencyConversionDescriptionsDisabled = sprintf(
            '%s <b>%s</b>.',
            __('Currency conversion is', 'woocommerce-mercadopago'),
            __('disabled', 'woocommerce-mercadopago')
        );


        $this->yapeGatewaySettings = [
            'gateway_title'                             => __('Yape', 'woocommerce-mercadopago'),
            'gateway_description'                       => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'gateway_method_title'                      => __('Mercado Pago - Checkout API Yape', 'woocommerce-mercadopago'),
            'gateway_method_description'                => __('Payments without leaving your store with our customizable checkout.', 'woocommerce-mercadopago'),
            'header_title'                              => __('Checkout API | Yape', 'woocommerce-mercadopago'),
            'header_description'                        => __('Receive payments through the Yape app automatically, without redirects, and with all the security of Mercado Pago. ', 'woocommerce-mercadopago'),
            'card_settings_title'                       => __('Mercado Pago plugin general settings', 'woocommerce-mercadopago'),
            'card_settings_subtitle'                    => __('Set the deadlines and fees, test your store or access the Plugin manual.', 'woocommerce-mercadopago'),
            'card_settings_button_text'                 => __('Go to Settings', 'woocommerce-mercadopago'),
            'enabled_title'                             => __('Enable the checkout', 'woocommerce-mercadopago'),
            'enabled_subtitle'                          => __('By disabling it, you will disable Yape from the Mercado Pago Checkout API.', 'woocommerce-mercadopago'),
            'enabled_descriptions_enabled'              => $enabledDescriptionsEnabled,
            'enabled_descriptions_disabled'             => $enabledDescriptionsDisabled,
            'title_title'                               => __('Title in the website’s checkout', 'woocommerce-mercadopago'),
            'title_description'                         => __('Enter a title and a description for Yape in your Checkout API , maximum characters: 85', 'woocommerce-mercadopago'),
            'title_default'                             => __('Yape', 'woocommerce-mercadopago'),
            'title_desc_tip'                            => __('The text inserted here will not be translated to other languages', 'woocommerce-mercadopago'),
            'currency_conversion_title'                 => __('Convert Currency', 'woocommerce-mercadopago'),
            'currency_conversion_subtitle'              => __('Activate this option so that the value of the currency set in WooCommerce is compatible with the value of the currency you use in Mercado Pago.', 'woocommerce-mercadopago'),
            'currency_conversion_descriptions_enabled'  => $currencyConversionDescriptionsEnabled,
            'currency_conversion_descriptions_disabled' => $currencyConversionDescriptionsDisabled,
            'advanced_configuration_title'              => __('Advanced settings', 'woocommerce-mercadopago'),
            'advanced_configuration_subtitle'           => __('Edit these advanced fields only when you want to modify the preset values.', 'woocommerce-mercadopago'),
            'discount_title'                            => __('Discount in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'discount_description'                      => __('Choose a percentage value that you want to discount your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'discount_checkbox_label'                   => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
            'commission_title'                          => __('Commission in Mercado Pago Checkouts', 'woocommerce-mercadopago'),
            'commission_description'                    => __('Choose an additional percentage value that you want to charge as commission to your customers for paying with Mercado Pago.', 'woocommerce-mercadopago'),
            'commission_checkbox_label'                 => __('Activate and show this information on Mercado Pago Checkout', 'woocommerce-mercadopago'),
        ];
        $this->yapeGatewaySettings  = array_merge($this->yapeGatewaySettings, $this->setSupportLinkTranslations());
    }

    /**
     * Set test mode settings translations
     *
     * @return void
     */
    private function setTestModeSettingsTranslations(): void
    {
        $testCredentialsHelper = sprintf(
            '%s, <a class="mp-settings-blue-text" id="mp-testmode-credentials-link" target="_blank" href="%s">%s</a> %s.',
            __('To enable test mode', 'woocommerce-mercadopago'),
            $this->links['mercadopago_credentials'],
            __('copy your test credentials', 'woocommerce-mercadopago'),
            __('and paste them above in section 1 of this page', 'woocommerce-mercadopago')
        );

        $testSubtitleOne = sprintf(
            '1. %s <a class="mp-settings-blue-text" id="mp-testmode-testuser-link" target="_blank" href="%s">%s</a>, %s.',
            __('Create your', 'woocommerce-mercadopago'),
            $this->links['mercadopago_test_user'],
            __('test user', 'woocommerce-mercadopago'),
            __('(Optional. Can be used in Production Mode and Test Mode, to test payments)', 'woocommerce-mercadopago')
        );

        $testSubtitleTwo = sprintf(
            '2. <a class="mp-settings-blue-text" id="mp-testmode-cardtest-link" target="_blank" href="%s">%s</a>, %s.',
            $this->links['docs_test_cards'],
            __('Use our test cards', 'woocommerce-mercadopago'),
            __('never use real cards', 'woocommerce-mercadopago')
        );

        $testSubtitleThree = sprintf(
            '3. <a class="mp-settings-blue-text" id="mp-testmode-store-link" target="_blank" href="%s">%s</a> %s.',
            $this->links['store_visit'],
            __('Visit your store', 'woocommerce-mercadopago'),
            __('to test purchases', 'woocommerce-mercadopago')
        );

        $this->testModeSettings = [
            'title_test_mode'         => __('4. Test your store before you start to sell', 'woocommerce-mercadopago'),
            'title_mode'              => __('Choose how you want to operate your store:', 'woocommerce-mercadopago'),
            'title_test'              => __('Test Mode', 'woocommerce-mercadopago'),
            'title_prod'              => __('Sale Mode (Production)', 'woocommerce-mercadopago'),
            'title_message_prod'      => __('Mercado Pago payment methods in Production Mode', 'woocommerce-mercadopago'),
            'title_message_test'      => __('Mercado Pago payment methods in Test Mode', 'woocommerce-mercadopago'),
            'title_alert_test'        => __('Enter test credentials', 'woocommerce-mercadopago'),
            'subtitle_test_mode'      => __('Select “Test Mode” if you want to try the payment experience before you start to sell or “Sales Mode” (Production) to start now.', 'woocommerce-mercadopago'),
            'subtitle_test'           => __('Mercado Pago Checkouts disabled for real collections.', 'woocommerce-mercadopago'),
            'subtitle_test_link'      => __('Test Mode rules.', 'woocommerce-mercadopago'),
            'subtitle_prod'           => __('Mercado Pago Checkouts enabled for real collections.', 'woocommerce-mercadopago'),
            'subtitle_message_prod'   => __('The clients can make real purchases in your store.', 'woocommerce-mercadopago'),
            'subtitle_test_one'       => $testSubtitleOne,
            'subtitle_test_two'       => $testSubtitleTwo,
            'subtitle_test_three'     => $testSubtitleThree,
            'test_credentials_helper' => $testCredentialsHelper,
            'badge_mode'              => __('Store in sale mode (Production)', 'woocommerce-mercadopago'),
            'badge_test'              => __('Store under test', 'woocommerce-mercadopago'),
            'button_test_mode'        => __('Save changes', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set configuration tips translations
     *
     * @return void
     */
    private function setConfigurationTipsTranslations(): void
    {
        $this->configurationTips = [
            'valid_store_tips'         => __('Store business fields are valid', 'woocommerce-mercadopago'),
            'invalid_store_tips'       => __('Store business fields could not be validated', 'woocommerce-mercadopago'),
            'valid_payment_tips'       => __('At least one payment method is enabled', 'woocommerce-mercadopago'),
            'invalid_payment_tips'     => __('No payment method enabled', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set credentials link components translations
     *
     * @return void
     */
    private function setCredentialsLinkComponentsTranslations(): void
    {
        $this->credentialsLinkComponents = [
            'initial_title'                         => __('We’ll take you to Mercado Pago to choose the account where you’ll receive the money from your sales', 'woocommerce-mercadopago'),
            'initial_description'                   => __('It will only take a few minutes.', 'woocommerce-mercadopago'),
            'initial_button'                        => __('Start linking', 'woocommerce-mercadopago'),
            'linked_title'                          => __('Well done! You linked your Mercado Pago account to receive the money from your sales', 'woocommerce-mercadopago'),
            'linked_description'                    => __('Now, finish setting up the sections below to start selling.', 'woocommerce-mercadopago'),
            'linked_store_name'                     => __('Store name', 'woocommerce-mercadopago'),
            'linked_store_contact'                  => __('Store contact', 'woocommerce-mercadopago'),
            'linked_account'                        => __('Linked account', 'woocommerce-mercadopago'),
            'linked_button'                         => __('Switch account', 'woocommerce-mercadopago'),
            'linked_more_info'                      => __('For more information, check the', 'woocommerce-mercadopago'),
            'linked_data'                           => __('linking process details', 'woocommerce-mercadopago'),
            'failed_title'                          => __('We’re sorry. It wasn’t possible to link your store to a Mercado Pago account', 'woocommerce-mercadopago'),
            'failed_description'                    => __('Try linking it again to receive the money from your sales.', 'woocommerce-mercadopago'),
            'failed_button'                         => __('Try again', 'woocommerce-mercadopago'),
            'update_title'                          => __('Update your store’s link to Mercado Pago', 'woocommerce-mercadopago'),
            'update_description'                    => __('This action is necessary to keep receiving payments in your store as usual.', 'woocommerce-mercadopago'),
            'update_button'                         => __('Update link', 'woocommerce-mercadopago'),
            'link_updated_title'                    => __('You updated your Mercado Pago account to receive the money from your sales', 'woocommerce-mercadopago'),
            'link_updated_description'              => __('Keep selling as usual.', 'woocommerce-mercadopago'),
            'previously_linked_title'               => __('You linked your Mercado Pago account to receive the money from your sales', 'woocommerce-mercadopago'),
            'previously_linked_description'         => __('If you haven’t done so yet, finish setting up the sections below to start selling.', 'woocommerce-mercadopago'),
            'linked_failed_to_load_store_name'      => __('Something went wrong', 'woocommerce-mercadopago'),
            'linked_failed_to_load_store_contact'   => __('It wasn’t possible to upload your details.', 'woocommerce-mercadopago'),
            'could_not_validate_link_title'         => __('We can’t display your credentials at the moment', 'woocommerce-mercadopago'),
            'could_not_validate_link_description'   => __('Please try again in a few minutes.', 'woocommerce-mercadopago'),
            'credentials_modal_title'               => __('Linking process details', 'woocommerce-mercadopago'),
            'credentials_modal_description'         => __('During the linking process, an app is created to identify your store within Mercado Pago and your credentials (authentication keys) are generated. These enable you to receive payments or run tests in your checkout.', 'woocommerce-mercadopago'),
            'credentials_modal_app_name'            => __('App name', 'woocommerce-mercadopago'),
            'credentials_modal_title_prod'          => __('Production credentials', 'woocommerce-mercadopago'),
            'credentials_modal_subtitle_prod'       => __('These enable the checkout to receive real payments in your store.', 'woocommerce-mercadopago'),
            'credentials_modal_title_test'          => __('Testing credentials', 'woocommerce-mercadopago'),
            'credentials_modal_subtitle_test'       => __('These enable you to simulate payments in the checkout or run tests.', 'woocommerce-mercadopago'),
            'credentials_modal_subtitle_empty_test' => __('Test credentials allow you to simulate payments or run tests at checkout. Find and copy them from the', 'woocommerce-mercadopago'),
            'credentials_modal_footer_text'         => __('Are you a developer? Access the', 'woocommerce-mercadopago'),
            'credentials_modal_dashboard_link'      => __('Developer Dashboard', 'woocommerce-mercadopago'),
            'change_country'                        => __('Change country', 'woocommerce-mercadopago'),
            'button_store_credentials'              => __('Store', 'woocommerce-mercadopago'),
            'select_country'                        => [
                'title'       => __('Before linking, select your store’s location', 'woocommerce-mercadopago'),
                'description' => __('In which country is your Mercado Pago account registered?', 'woocommerce-mercadopago'),
                'placeholder' => __('Select a country', 'woocommerce-mercadopago'),
                'empty_error' => __('Select a country to proceed.', 'woocommerce-mercadopago'),
                'success'     => __('You selected {{country}} as the country for your store.', 'woocommerce-mercadopago'),
                'continue'    => __('Continue', 'woocommerce-mercadopago'),
            ]
        ];
    }

    /**
     * Set validate credentials translations
     *
     * @return void
     */
    private function setValidateCredentialsTranslations(): void
    {
        $this->validateCredentials = [
            'valid_public_key'     => __('Valid Public Key', 'woocommerce-mercadopago'),
            'invalid_public_key'   => __('Invalid Public Key', 'woocommerce-mercadopago'),
            'valid_access_token'   => __('Valid Access Token', 'woocommerce-mercadopago'),
            'invalid_access_token' => __('Invalid Access Token', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set update credentials translations
     *
     * @return void
     */
    private function setUpdateCredentialsTranslations(): void
    {
        $this->updateCredentials = [
            'credentials_updated'                           => __('You saved your credentials.', 'woocommerce-mercadopago'),
            'no_test_mode_title'                            => __('Your store has exited Test Mode and is making real sales in Production Mode.', 'woocommerce-mercadopago'),
            'no_test_mode_subtitle'                         => __('To test the store, re-enter both test credentials.', 'woocommerce-mercadopago'),
            'invalid_credentials'                           => __('Something went wrong. Please paste your key again.', 'woocommerce-mercadopago'),
            'invalid_credentials_empty'                     => __('Fill out this field.', 'woocommerce-mercadopago'),
            'invalid_credentials_not_test'                  => __('This is a production key, please paste a test key instead.', 'woocommerce-mercadopago'),
            'invalid_credentials_not_same_client_id'        => __('Enter the test key that appears in the application created for this store.', 'woocommerce-mercadopago'),
            'invalid_credentials_title'                     => __('Invalid credentials', 'woocommerce-mercadopago'),
            'for_test_mode'                                 => __(' for test mode', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set update store translations
     *
     * @return void
     */
    private function setUpdateStoreTranslations(): void
    {
        $this->updateStore = [
            'valid_configuration' => __('Store information is valid', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set currency translations
     *
     * @return void
     */
    private function setCurrencyTranslations(): void
    {
        $notCompatibleCurrencyConversion = sprintf(
            '<b>%s</b> %s',
            __('Attention:', 'woocommerce-mercadopago'),
            __('The currency settings you have in WooCommerce are not compatible with the currency you use in your Mercado Pago account. Please activate the currency conversion.', 'woocommerce-mercadopago')
        );

        $baseConversionMessage = __('We are converting your currency from: ', 'woocommerce-mercadopago');
        $this->currency = [
            'not_compatible_currency_conversion' => $notCompatibleCurrencyConversion,
            'now_we_convert'     => $this->generateConversionMessage($baseConversionMessage),
        ];
    }

    /**
     * Generate conversion message
     *
     * @param string $baseMessage
     *
     * @return string
     */
    private function generateConversionMessage(string $baseMessage): string
    {
        return sprintf('%s %s %s ', $baseMessage, get_woocommerce_currency(), __("to ", 'woocommerce-mercadopago'));
    }

    /**
     * Set status sync metabox translations
     *
     * @return void
     */
    private function setStatusSyncTranslations(): void
    {
        $this->statusSync = [
            'metabox_title'                                    => __('Payment status on Mercado Pago', 'woocommerce-mercadopago'),
            'card_title'                                       => __('This is the payment status of your Mercado Pago Activities. To check the order status, please refer to Order details.', 'woocommerce-mercadopago'),
            'link_description_success'                         => __('View purchase details at Mercado Pago', 'woocommerce-mercadopago'),
            'sync_button_success'                              => __('Sync order status', 'woocommerce-mercadopago'),
            'link_description_pending'                         => __('View purchase details at Mercado Pago', 'woocommerce-mercadopago'),
            'sync_button_pending'                              => __('Sync order status', 'woocommerce-mercadopago'),
            'link_description_failure'                         => __('Consult the reasons for refusal', 'woocommerce-mercadopago'),
            'sync_button_failure'                              => __('Sync order status', 'woocommerce-mercadopago'),
            'response_success'                                 => __('Order update successfully. This page will be reloaded...', 'woocommerce-mercadopago'),
            'response_error'                                   => __('Unable to update order:', 'woocommerce-mercadopago'),
            'alert_title_accredited'                           => __('Payment made', 'woocommerce-mercadopago'),
            'description_accredited'                           => __('Payment made by the buyer and already credited in the account.', 'woocommerce-mercadopago'),
            'alert_title_settled'                              => __('Call resolved', 'woocommerce-mercadopago'),
            'description_settled'                              => __('Please contact Mercado Pago for further details.', 'woocommerce-mercadopago'),
            'alert_title_reimbursed'                           => __('Payment refunded', 'woocommerce-mercadopago'),
            'description_reimbursed'                           => __('Your refund request has been made. Please contact Mercado Pago for further details.', 'woocommerce-mercadopago'),
            'alert_title_refunded'                             => __('Payment returned', 'woocommerce-mercadopago'),
            'description_refunded'                             => __('The payment has been returned to the client.', 'woocommerce-mercadopago'),
            'alert_title_partially_refunded'                   => __('Payment returned', 'woocommerce-mercadopago'),
            'description_partially_refunded'                   => __('The payment has been partially returned to the client.', 'woocommerce-mercadopago'),
            'alert_title_by_collector'                         => __('Payment canceled', 'woocommerce-mercadopago'),
            'description_by_collector'                         => __('The payment has been successfully canceled.', 'woocommerce-mercadopago'),
            'alert_title_by_payer'                             => __('Purchase canceled', 'woocommerce-mercadopago'),
            'description_by_payer'                             => __('The payment has been canceled by the customer.', 'woocommerce-mercadopago'),
            'alert_title_pending'                              => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending'                              => __('Awaiting payment from the buyer.', 'woocommerce-mercadopago'),
            'alert_title_pending_waiting_payment'              => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_waiting_payment'              => __('Awaiting payment from the buyer.', 'woocommerce-mercadopago'),
            'alert_title_pending_waiting_for_remedy'           => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_waiting_for_remedy'           => __('Awaiting payment from the buyer.', 'woocommerce-mercadopago'),
            'alert_title_pending_waiting_transfer'             => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_waiting_transfer'             => __('Awaiting payment from the buyer.', 'woocommerce-mercadopago'),
            'alert_title_pending_review_manual'                => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_review_manual'                => __('We are veryfing the payment. We will notify you by email in up to 6 hours if everything is fine so that you can deliver the product or provide the service.', 'woocommerce-mercadopago'),
            'alert_title_waiting_bank_confirmation'            => __('Declined payment', 'woocommerce-mercadopago'),
            'description_waiting_bank_confirmation'            => __('The card-issuing bank declined the payment. Please ask your client to use another card or to get in touch with the bank.', 'woocommerce-mercadopago'),
            'alert_title_pending_capture'                      => __('Payment authorized. Awaiting capture.', 'woocommerce-mercadopago'),
            'description_pending_capture'                      => __("The payment has been authorized on the client's card. Please capture the payment.", 'woocommerce-mercadopago'),
            'alert_title_in_process'                           => __('Payment in process', 'woocommerce-mercadopago'),
            'description_in_process'                           => __('Please wait or contact Mercado Pago for further details', 'woocommerce-mercadopago'),
            'alert_title_pending_contingency'                  => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_contingency'                  => __('The bank is reviewing the payment. As soon as we have their confirmation, we will notify you via email so that you can deliver the product or provide the service.', 'woocommerce-mercadopago'),
            'alert_title_pending_card_validation'              => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_card_validation'              => __('Awaiting payment information validation.', 'woocommerce-mercadopago'),
            'alert_title_pending_online_validation'            => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_online_validation'            => __('Awaiting payment information validation.', 'woocommerce-mercadopago'),
            'alert_title_pending_additional_info'              => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_additional_info'              => __('Awaiting payment information validation.', 'woocommerce-mercadopago'),
            'alert_title_offline_process'                      => __('Pending payment', 'woocommerce-mercadopago'),
            'description_offline_process'                      => __('Please wait or contact Mercado Pago for further details', 'woocommerce-mercadopago'),
            'alert_title_pending_challenge'                    => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_challenge'                    => __('Waiting for the buyer.', 'woocommerce-mercadopago'),
            'alert_title_pending_provider_response'            => __('Pending payment', 'woocommerce-mercadopago'),
            'description_pending_provider_response'            => __('Waiting for the card issuer.', 'woocommerce-mercadopago'),
            'alert_title_bank_rejected'                        => __('The card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_bank_rejected'                        => __('Please recommend your customer to pay with another payment method or to contact their bank.', 'woocommerce-mercadopago'),
            'alert_title_rejected_by_bank'                     => __('The card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_rejected_by_bank'                     => __('Please recommend your customer to pay with another payment method or to contact their bank.', 'woocommerce-mercadopago'),
            'alert_title_rejected_insufficient_data'           => __('Declined payment', 'woocommerce-mercadopago'),
            'description_rejected_insufficient_data'           => __('The card-issuing bank declined the payment. Please ask your client to use another card or to get in touch with the bank.', 'woocommerce-mercadopago'),
            'alert_title_bank_error'                           => __('The card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_bank_error'                           => __('Please recommend your customer to pay with another payment method or to contact their bank.', 'woocommerce-mercadopago'),
            'alert_title_by_admin'                             => __('Mercado Pago did not process the payment', 'woocommerce-mercadopago'),
            'description_by_admin'                             => __('Please contact Mercado Pago for further details.', 'woocommerce-mercadopago'),
            'alert_title_expired'                              => __('Expired payment deadline', 'woocommerce-mercadopago'),
            'description_expired'                              => __('The client did not pay within the time limit.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_bad_filled_card_number'   => __('Your customer entered one or more incorrect card details', 'woocommerce-mercadopago'),
            'description_cc_rejected_bad_filled_card_number'   => __('Please ask them to enter to enter them again exactly as they appear on the card or on their bank app to complete the payment.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_bad_filled_security_code' => __('Your customer entered one or more incorrect card details', 'woocommerce-mercadopago'),
            'description_cc_rejected_bad_filled_security_code' => __('Please ask them to enter to enter them again exactly as they appear on the card or on their bank app to complete the payment.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_bad_filled_date'          => __('Your customer entered one or more incorrect card details', 'woocommerce-mercadopago'),
            'description_cc_rejected_bad_filled_date'          => __('Please ask them to enter to enter them again exactly as they appear on the card or on their bank app to complete the payment.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_high_risk'                => __('We protected you from a suspicious payment', 'woocommerce-mercadopago'),
            'description_cc_rejected_high_risk'                => __('For safety reasons, this transaction cannot be completed.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_fraud'                    => __('Declined payment', 'woocommerce-mercadopago'),
            'description_cc_rejected_fraud'                    => __('The buyer is suspended in our platform. Your client must contact us to check what happened.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_blacklist'                => __('For safety reasons, the card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_cc_rejected_blacklist'                => __('Recommend your customer to pay with their usual payment method and device for online purchases.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_insufficient_amount'      => __("Your customer's credit card has no available limit", 'woocommerce-mercadopago'),
            'description_cc_rejected_insufficient_amount'      => __('Please ask them to pay with another card or to choose another payment method.', 'woocommerce-mercadopago'),
            'description_cc_rejected_insufficient_amount_cc'   => __('Please ask them to pay with another card or to choose another payment method.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_other_reason'             => __('The card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_cc_rejected_other_reason'             => __('Please recommend your customer to pay with another payment method or to contact their bank.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_max_attempts'             => __('Your customer reached the limit of payment attempts with this card', 'woocommerce-mercadopago'),
            'description_cc_rejected_max_attempts'             => __('Please ask them to pay with another card or to choose another payment method.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_invalid_installments'     => __("Your customer's card  does not accept the number of installments selected", 'woocommerce-mercadopago'),
            'description_cc_rejected_invalid_installments'     => __('Please ask them to choose a different number of installments or to pay with another method.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_call_for_authorize'       => __('Your customer needs to authorize the payment through their bank', 'woocommerce-mercadopago'),
            'description_cc_rejected_call_for_authorize'       => __('Please ask them to call the telephone number on their card or to pay with another method.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_duplicated_payment'       => __('The payment was declined because your customer already paid for this purchase', 'woocommerce-mercadopago'),
            'description_cc_rejected_duplicated_payment'       => __('Check your approved payments to verify it.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_card_disabled'            => __("Your customer's card was is not activated yet", 'woocommerce-mercadopago'),
            'description_cc_rejected_card_disabled'            => __('Please ask them to contact their bank by calling the number on the back of their card or to pay with another method.', 'woocommerce-mercadopago'),
            'alert_title_payer_unavailable'                    => __('Declined payment', 'woocommerce-mercadopago'),
            'description_payer_unavailable'                    => __('The buyer is suspended in our platform. Your client must contact us to check what happened.', 'woocommerce-mercadopago'),
            'alert_title_rejected_high_risk'                   => __('We protected you from a suspicious payment', 'woocommerce-mercadopago'),
            'description_rejected_high_risk'                   => __('Recommend your customer to pay with their usual payment method and device for online purchases.', 'woocommerce-mercadopago'),
            'alert_title_rejected_by_regulations'              => __('Declined payment', 'woocommerce-mercadopago'),
            'description_rejected_by_regulations'              => __('This payment was declined because it did not pass Mercado Pago security controls. Please ask your client to use another card.', 'woocommerce-mercadopago'),
            'alert_title_rejected_cap_exceeded'                => __('Declined payment', 'woocommerce-mercadopago'),
            'description_rejected_cap_exceeded'                => __('The amount exceeded the card limit. Please ask your client to use another card or to get in touch with the bank.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_3ds_challenge'            => __('Declined payment', 'woocommerce-mercadopago'),
            'description_cc_rejected_3ds_challenge'            => __('Please ask your client to use another card or to get in touch with the card issuer.', 'woocommerce-mercadopago'),
            'alert_title_rejected_other_reason'                => __('The card issuing bank declined the payment', 'woocommerce-mercadopago'),
            'description_rejected_other_reason'                => __('Please recommend your customer to pay with another payment method or to contact their bank.', 'woocommerce-mercadopago'),
            'alert_title_authorization_revoked'                => __('Declined payment', 'woocommerce-mercadopago'),
            'description_authorization_revoked'                => __('Please ask your client to use another card or to get in touch with the card issuer.', 'woocommerce-mercadopago'),
            'alert_title_cc_amount_rate_limit_exceeded'        => __('Pending payment', 'woocommerce-mercadopago'),
            'description_cc_amount_rate_limit_exceeded'        => __("The amount exceeded the card's limit. Please ask your client to use another card or to get in touch with the bank.", 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_expired_operation'        => __('Expired payment deadline', 'woocommerce-mercadopago'),
            'description_cc_rejected_expired_operation'        => __('The client did not pay within the time limit.', 'woocommerce-mercadopago'),
            'alert_title_cc_rejected_bad_filled_other'         => __('Your customer entered one or more incorrect card details', 'woocommerce-mercadopago'),
            'description_cc_rejected_bad_filled_other'         => __('Please ask them to enter to enter them again exactly as they appear on the card or on their bank app to complete the payment.', 'woocommerce-mercadopago'),
            'description_cc_rejected_bad_filled_other_cc'      => __('Please ask them to enter to enter them again exactly as they appear on the card or on their bank app to complete the payment.', 'woocommerce-mercadopago'),
            'alert_title_rejected_call_for_authorize'          => __('Your customer needs to authorize the payment through their bank', 'woocommerce-mercadopago'),
            'description_rejected_call_for_authorize'          => __('Please ask them to call the telephone number on their card or to pay with another method.', 'woocommerce-mercadopago'),
            'alert_title_am_insufficient_amount'               => __("Your customer's debit card has insufficient funds", 'woocommerce-mercadopago'),
            'description_am_insufficient_amount'               => __('Please recommend your customer to pay with another card or to choose another payment method.', 'woocommerce-mercadopago'),
            'alert_title_generic'                              => __('Something went wrong and the payment was declined', 'woocommerce-mercadopago'),
            'description_generic'                              => __('Please recommend you customer to try again or to pay with another payment method.', 'woocommerce-mercadopago'),
        ];
    }


     /**
     * Set support link translations
     *
     * @return array with new translations
     */
    private function setSupportLinkTranslations(): array
    {
        return [
            'support_link_bold_text'        => __('Any questions?', 'woocommerce-mercadopago'),
            'support_link_text_before_link' => __('Please check the', 'woocommerce-mercadopago'),
            'support_link_text_with_link'   => __('FAQs', 'woocommerce-mercadopago'),
            'support_link_text_after_link'  => __('on the dev website.', 'woocommerce-mercadopago'),
        ];
    }

    /**
     * Set support settings translations
     *
     * @return void
     */
    private function setSupportSettingsTranslations(): void
    {
        $faqsUrl = sprintf(
            '%s <a id="mp-settings-support-faq-url" class="mp-settings-blue-text" target="_blank" href="%s">%s</a> %s',
            __('Check our', 'woocommerce-mercadopago'),
            $this->links['docs_support_faq'],
            __('FAQs', 'woocommerce-mercadopago'),
            __('or open a ticket to contact the Mercado Pago team.', 'woocommerce-mercadopago')
        );

        $stepOne = sprintf(
            '%s <a id="mp-settings-support-ticket-link" class="mp-settings-blue-text" target="_blank" href="%s">%s</a> %s',
            __('1. Go to the dev website and open a', 'woocommerce-mercadopago'),
            $this->links['mercadopago_support'],
            __('ticket', 'woocommerce-mercadopago'),
            __('in the Support section.', 'woocommerce-mercadopago')
        );

        $stepFour = sprintf(
            '%s <span id="support-modal-trigger" class="mp-settings-blue-text" onclick="openSupportModal()">%s</span> %s',
            __('4. Download the', 'woocommerce-mercadopago'),
            __('error history', 'woocommerce-mercadopago'),
            __('and share it with the Mercado Pago team when asked for it.', 'woocommerce-mercadopago')
        );

        $this->supportSettings = [
            'support_title'           => __('Do you need help?', 'woocommerce-mercadopago'),
            'support_how_to'          => __('How to open a ticket:', 'woocommerce-mercadopago'),
            'support_step_one'        => $stepOne,
            'support_step_two'        => __('2. Fill out the form with your store details.', 'woocommerce-mercadopago'),
            'support_step_three'      => __('3. Copy and paste the following details when asked for the the technical information:', 'woocommerce-mercadopago'),
            'support_step_four'       =>  $stepFour,
            'support_faqs_url'        => $faqsUrl,
            'support_version'         => __('Version:', 'woocommerce-mercadopago'),
            'support_modal_title'     =>  __('History of errors', 'woocommerce-mercadopago'),
            'support_modal_desc'      => __('Select the files you want to share with our team and click on Download. This information will be requested by e-mail if necessary.', 'woocommerce-mercadopago'),

            'support_modal_table_header_1'     =>  __('Select', 'woocommerce-mercadopago'),
            'support_modal_table_header_2'     =>  __('Source', 'woocommerce-mercadopago'),
            'support_modal_table_header_3'     =>  __('File date', 'woocommerce-mercadopago'),
            'support_modal_download_btn'       =>  __('Download', 'woocommerce-mercadopago'),
            'support_modal_next_page'          =>  __('Next Page', 'woocommerce-mercadopago'),
            'support_modal_prev_page'          =>  __('Previous page', 'woocommerce-mercadopago'),
            'support_modal_no_content'         =>  __('The plugin has not yet recorded any logs in your store.', 'woocommerce-mercadopago'),
        ];
    }

    private function setCountriesTranslations(): void
    {
        $this->countries = [
            'MLA' => __('Argentina', 'woocommerce-mercadopago'),
            'MLB' => __('Brazil', 'woocommerce-mercadopago'),
            'MLC' => __('Chile', 'woocommerce-mercadopago'),
            'MCO' => __('Colombia', 'woocommerce-mercadopago'),
            'MLM' => __('Mexico', 'woocommerce-mercadopago'),
            'MPE' => __('Peru', 'woocommerce-mercadopago'),
            'MLU' => __('Uruguay', 'woocommerce-mercadopago'),
        ];
    }

    private function setRefundTranslations(): void
    {
        $this->refund = [
            'amount_must_be_positive'   => __('The amount entered for the refund must be greater than zero. Please enter the amount you need to refund.', 'woocommerce-mercadopago'),
            'forbidden'                 => __('Something went wrong. Please contact the Mercado Pago support team and we will help you resolve it.', 'woocommerce-mercadopago'),
            'insufficient_funds'        => __('You do not have sufficient balance in your account. To make the refund, please deposit money in your account.', 'woocommerce-mercadopago'),
            'internal_server_error'     => __('Something went wrong. The refund could not be processed at this time. Please try again later.', 'woocommerce-mercadopago'),
            'invalid_payment_status'    => __('You can only refund a payment that has already been approved. Please wait for approval and try again.', 'woocommerce-mercadopago'),
            'invalid_refund_amount'     => __('The requested refund amount is greater than the total amount of the order. Please check the amount and try again.', 'woocommerce-mercadopago'),
            'invalid_request'           => __('Something went wrong. Please contact the Mercado Pago support team and we will help you resolve it.', 'woocommerce-mercadopago'),
            'no_permission'             => __('You do not have permission to process a refund. Please check your access to the site and try again.', 'woocommerce-mercadopago'),
            'not_found'                 => __('The refund could not be processed. Please try again or contact the Mercado Pago support team.', 'woocommerce-mercadopago'),
            'payment_not_found'         => __('The refund could not be processed. Please try again or contact the Mercado Pago support team.', 'woocommerce-mercadopago'),
            'payment_too_old'           => __('This payment is too old to be refunded. If you need help, please contact the Mercado Pago support team.', 'woocommerce-mercadopago'),
            'unauthorized'              => __('Your access credentials are incorrect or have expired. Please renew your credentials in the Mercado Pago settings and try again.', 'woocommerce-mercadopago'),
            'unknown_error'             => __('Something went wrong. Please contact the Mercado Pago support team and we will help you resolve it.', 'woocommerce-mercadopago'),
            'supertoken_not_supported'  => __('This payment was made using Fast Pay with Mercado Pago and does not yet support refunds through the WooCommerce order page. Please process the refund directly from your Mercado Pago payment details page.', 'woocommerce-mercadopago'),
        ];
    }
}
