#BrandDo
1 messages · Page 1 of 1 (latest)
Hello
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
Programming language or written/spoken language?
my app using expo go
Ok, and what specific language issues are you having? I'm not understanding the issue
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
Can you share the error message?
Card number is invalid or more message
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
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
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
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
Ok, you're not using the Payment Sheet. Let me check
give me results when you find something
Hey! Taking over for my colleague. Let me catch up.
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
oki. i got it. Tks so much!
You can listen to declineCode and stripeErrorCode to identify the errors and display your own errors sentences.