#furkannozzturk-localization

1 messages ยท Page 1 of 1 (latest)

grand epoch
#

๐Ÿ‘‹ happy to help

copper venture
#

It would really make me happy ๐Ÿ™

grand epoch
#

are you talking about the API errors or localizing the front-end Elements?

copper venture
#

Actually, I am talking about payment erorrs, which is like, If user enters a card which has Insufficent Funds, It respond with a erorr code

#

according to your question I think its localizing front-end elements

grand epoch
copper venture
#

Yes, I am

#

So sorry for to made you waiting. I went a meeting

grand epoch
#

no worries, I'm still here

#

we only localize for client-side errors

#

if you get an error in the API you will receive the error like this

  "error": {
    "type": "invalid_request_error",
    "message": "Invalid positive integer",
    "param": "amount"
  }
}```
#

based on the type you should build your own localization

copper venture
#

Yes, we are checking error codes from API, more spesificly network based codes, when a get a decline from stripe, It returns us a error codes and we show a modal according to error code

#

So we have to localize it from our system

#

Thank you so much @grand epoch ๐Ÿ™