overridePreferredUILocale static method

Future<void> overridePreferredUILocale(
  1. String? locale
)

Overrides the preferred UI locale used by RevenueCat UI components.

When provided, the SDK will use the specified locale instead of the system default. Both "es-ES" and "es_ES" formats are supported.

Pass null to revert to the system default.

locale The locale identifier (e.g., "de-DE", "es_ES") or null to use the system default.

Implementation

static Future<void> overridePreferredUILocale(String? locale) =>
    _channel.invokeMethod(
      'overridePreferredUILocale',
      {
        'locale': locale,
      },
    );