You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the German localization, standard (static) texts are localized but all variable content is not localized but just empty.
Environment
Platform: iOS
SDK version: 5.16.1
StoreKit version:
StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with .with(storeKitVersion: .storeKit1))
StoreKit 2 (default on versions >=5.0.0)
OS version: 18.2
Xcode version: 16.2
Device and/or simulator:
Device
[x ] Simulator
Environment:
[ x] Sandbox
TestFlight
Production
How widespread is the issue. Percentage of devices affected: 100% reproducible
Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
Logs here
Steps to reproduce, with a description of expected vs. actual behavior
Create a Paywall with variable content that is localized in German.
The variable content is not localized but just empty.
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
This seems to be a bug in the SDK. I can fix the issue by changing one line, UIConfigProvider.swift:53:
Hi @futuretap,
We've made a fix for this issue and it's going to be available in the next SDK version. I'll keep this issue opened until we verify this is fixed for your case.
Best,
Describe the bug
When using the German localization, standard (static) texts are localized but all variable content is not localized but just empty.
.with(storeKitVersion: .storeKit1)
)Purchases.logLevel = .verbose
will help us debug this issue.Create a Paywall with variable content that is localized in German.
The variable content is not localized but just empty.
This seems to be a bug in the SDK. I can fix the issue by changing one line, UIConfigProvider.swift:53:
guard let localizations = self.uiConfig.localizations[locale.identifier] ?? self.uiConfig.localizations[locale.languageCode ?? locale.identifier] else {
The workaround is dirty and you should fix this properly.
The text was updated successfully, but these errors were encountered: