iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
317 stars 21 forks source link

Localization issues #134

Closed hajnalben closed 1 year ago

hajnalben commented 1 year ago

Hey guys!

We have a kind of babel confusion when using your package. As you can see from the attached images the localization was set up correctly in the AppStore however in the localizedTitle, localizedDescription, and price we recieve mixed-language content.

Is there a way to set up localization of the iaphub client manually? For example the user can set the language of the app and we would like the display the products in this particular language.

Our subscriptions:

image

Basic:

image

Couple:

image

Family:

image

Return value of getProductsForSale: image

iaphub commented 1 year ago

Hey @hajnalben,

This is weird, the localization is coming directly from the StoreKit framework, it is based on the language of your iTunes account and we have no control over it. Could you try restarting your app completely? Could be a caching issue if you tested right after you added the languages.

Otherwise you don't have to use the localization from iTunes, you could use your own translations