Title: Feature Request: Add Language Localization Option During SDK Initialization
Body:
Description
We are currently using the Superwall Flutter SDK in our app, which allows users to set their global phone device language to English while preferring our app content in French. However, we've encountered a limitation with paywall localization.
Currently, the SDK determines the paywall language based on the device's locale settings. This approach doesn't accommodate our use case where users want a different language for the app (and paywall) than their device settings.
Feature Request
We would like to request the ability to specify the desired language for paywalls during the SDK initialization process. This feature would allow us to:
- Override the default device locale for paywall content
- Align the paywall language with our app's internal language settings
- Provide a consistent language experience throughout our app, including paywalls
Use Case
Our app uses dynamic settings to drive text content based on user language preferences. We would love to extend this functionality to paywalls, showing French paywalls to users who have selected French as their in-app language, regardless of their device's global language setting.
Proposed Solution
We suggest adding a parameter to the SDK initialization method that allows specifying the desired language code. For example:
SuperwallKit.instance.configure(
apiKey: 'YOUR_API_KEY',
options: ConfigureOptions(
// ... other options ...
language: 'fr', // Specify desired language code
),
);
This approach would give developers more control over the paywall language and improve the user experience for apps that support multiple languages independently of device settings.
Additional Context
This feature would be particularly useful for apps that:
- Serve multilingual audiences
- Allow in-app language selection
- Operate in regions where users commonly set device language to English but prefer app content in their native language
We appreciate your consideration of this feature request and look forward to your feedback.