overridePreferredUILocale

Override the preferred UI locale for RevenueCat UI components at runtime. This affects both API requests and UI rendering.

If the locale changes, this will automatically clear the offerings cache and trigger a background refetch to get paywall templates with the correct localizations.

Parameters

localeString

The locale string (e.g., "es-ES", "en-US") or null to use system default