Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there! ??

    I’ve already added a filter, as per the documentation

    Payment methods are dynamically displayed based on your customer’s currency and location, and are automatically translated.

    By default Stripe detects the locale of the browser and use that as the default. Since the Spanish locale is included, I would check in the following two places:

    * If the snippet was added with the 'locale' => 'es' parameter; or the 'locale' => get_locale() instead
    * In the latter scenario, feel free to also check the browser’s locale

    I hope that helps, otherwise let us know ??

    Thread Starter sanilus

    (@sanilus)

    Hi Anastasio,

    Thanks for your reply.

    The snippet that was added to the functions.php is:

    add_filter( 'wc_stripe_elements_options', 'wc_update_locale_in_stripe_element_options' );
    function wc_update_locale_in_stripe_element_options( $options ) {
        return array_merge(
            $options,
            array(
                'locale' => 'es',
            )
        );
    };

    I have checked with browsers with different locales and it is still showing those labels in english. I undestand the previous snippet overrrides the locale for the language assigned.

    Do you know of anything else that can be happening here?

    Thread Starter sanilus

    (@sanilus)

    Hi @anastas10s,

    DO you know of anything else that I can do here?

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    Hello!

    It looks you will need further help from a developer.

    I would recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce: https://developer.woocommerce.com/

    Additionally, the #developers channel of the WooCommerce Community Slack: https://woocommerce.com/community-slack/. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Credit Card Form’ is closed to new replies.