stripe / stripe-js

Loading wrapper for Stripe.js
https://stripe.com/docs/js
MIT License
633 stars 156 forks source link

[BUG]: Translation doesn't work on `stripe.verifyIdentity` #608

Closed daniel-ansari closed 4 months ago

daniel-ansari commented 6 months ago

What happened?

When using stripe.verifyIdentity to display an Identity modal, the modal appears in English instead of the specified locale.

Steps to Reproduce: Initialize Stripe with a test public key and specify a locale (e.g., 'ja' for Japanese). Call stripe.verifyIdentity with a session. Expected Behavior: The Identity modal should be displayed in the specified locale (e.g., Japanese).

Actual Behavior: The Identity modal is displayed in English, regardless of the specified locale.

Code Snippet:

const stripe = await loadStripe('pk_test_......', {
    locale: 'ja',
});

stripe.verifyIdentity('// session ');

Environment

No response

Reproduction

No response

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.