woocommerce hook to change the text language only for checkout page code example
Example: woocommerce change checkout button text
function woocommerce_button_proceed_to_checkout() { ?> <a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward"> <?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?> </a> <?php}