fsb
fsb

Reputation: 300

SKProduct localizedTitle always in english

I'm using Xcode v7.2 and Obj-c. I'm adding different languages to an existing iOS app. The main problem is that the SKProduct localizedTitle (Display Name on iTC) always comes back in English. I can show the price properly localized and formatted. I have ready many similar issues on SO and have tried their solutions but it doesn't seem to be working for me (for example: this and this).

Desired outcome:

  1. Show 3 buttons to user; each button has a different title and price.
  2. Dynamically change the IAP's Display Name & price by updating it in iTC only (so I don't have to update the code each time I want a change).
  3. Because of #2, I can't hard-code the IAP name or price on the button.
  4. Pull the localized title (Display Name on iTC) and price from iTC to use as the text label on the buttons.

Here's what I have setup already:

Result: I correctly see the IAP price for that country but I don't see the button's title correctly localized. The button's title is still in English. This happens with each language I've setup.

Can anyone spot what I'm doing wrong here? Do I have the wrong assumption that SKProduct.localizedTitle does not return the iTC Display Name for that language (App Store)? Any help would be appreciated, thanks.

Upvotes: 8

Views: 2482

Answers (1)

Tao
Tao

Reputation: 287

Based on In-App Purchase FAQ

localizedDescription and localizedTitle return localized information whose language is based on the current iTunes Store rather than the current device language setting.

Upvotes: 7

Related Questions