Skip to content

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

@yelkamel

Description

@yelkamel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions