#BrandDo

1 messages · Page 1 of 1 (latest)

woeful iglooBOT
rich compass
#

Hello

regal grove
#

i have problem using @stripe/stripe-react-native library related to language, is there any way to switch stripe's language to one or more other languages?

#

give me a guide to resolve issue

rich compass
#

Programming language or written/spoken language?

regal grove
#

my app using expo go

rich compass
#

Ok, and what specific language issues are you having? I'm not understanding the issue

regal grove
#

when I pay the error, the library is currently returning an error message the language is English, but the system I want to be able to change to another language such as Chinese, Japanese, Korean

rich compass
#

Can you share the error message?

regal grove
#

Card number is invalid or more message

rich compass
#

In the UI? Can you share a screenshot? As I understand it, those errors are currently localised according tot he language of the device(s) you're using

regal grove
#

my devs raise for me issue, i don't have a capture, but them change other language in device then message response still is english

rich compass
#

I can't really help without some more specific details: a screenshot, a full example of the error, some code

#

From what I understand both iOS and Android implementations of the Payment Sheet are localised according to the device current language

regal grove
#

wait for me

#

i send for you sample code in my project

#

import { CardForm, CardFormView, useStripe } from '@stripe/stripe-react-native';
<CardForm
placeholders={{
number: '4242 4242 4242 4242',
expiration: 'MM/YY',
}}
accessible={false}
onFormComplete={(card) => {
setCardDetails(card);
}}
style={styles.cardContainer}
cardStyle={Platform.OS === 'android' ? styles.cardAndroid : styles.cardIos}
/>

#

in my project, using lib for add card

rich compass
#

Ok, you're not using the Payment Sheet. Let me check

regal grove
#

give me results when you find something

supple burrow
#

Hey! Taking over for my colleague. Let me catch up.

regal grove
#

❤️

#

i have an issue localize

#

please help for me

supple burrow
#

Generally in mobile development you can't set/override the local/language at a UI element level, the local is get from the device default language or you can override that using native APIs in order to set that for all the app

regal grove
#

oki. i got it. Tks so much!

supple burrow
#

You can listen to declineCode and stripeErrorCode to identify the errors and display your own errors sentences.