Hi there! My app supports one language by default Ukrainian (uk) and does not support multiple languages. In Xcode settings "Development Language" is set to Ukrainian by default also. I have a PKAddPassButton on a ViewController and "Add to Apple Wallet" always appears in Ukrainian (Tested on real device iOS 15/16/17). Apple's "Getting Started with Apple Pay: In-App Provisioning, Verification, Security, and Wallet Extensions” document states that "The Add to Apple Wallet button adapts to the device language and the light and dark appearances, but the issuer app needs to adapt the language of the row selector text." When I change device language to French the “Add to Apple Wallet” button does not change to French. I created a fresh swift app, added PKAddPassButton the "Add to Apple Wallet" button, General -> Language & Region changed the device language to French, etc, but the "Add to Apple Wallet" button is always in English. Has anyone run into the same issue? How to adapt the "Add to Apple Wallet" button to the device system language?
My best guess is that the system uses your app language to show the button title. In your case, if your app only supports Ukrainian, and Ukrainian is in your preferred language list, the system will determine that Ukrainian is the best matching language for your app, and use it to show the title. How the system determines the language for an app is described in How iOS Determines the Language For Your App. (The QA is pretty old, but the content is still valid.)
To confirm that is the case, you might try to add the localization for each language you would support. If the .lproj
folder related to the device language exists in your app bundle, the system should show the title in the device language.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.