Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Language Localization Option During SDK Initialization #58

Open
yelkamel opened this issue Feb 14, 2025 · 0 comments

Comments

@yelkamel
Copy link

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:

  1. Override the default device locale for paywall content
  2. Align the paywall language with our app's internal language settings
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant