setLocale

abstract fun setLocale(@Size(max = 3) locale: String?)

Sets the user's preferred locale. This can influence the language or regional variations of content displayed by the SDK. The locale string should typically be a 2-letter ISO 639-1 language code (e.g., "en") or a language code followed by a 2-letter ISO 3166-1 country code (e.g., "en-US"). The SDK currently supports a maximum length of 3 characters for the locale string, but using standard two-letter codes (or language-country like "en-US" which gets processed appropriately) is recommended.

Parameters

locale

The locale string (e.g., "en", "es"). Pass null to clear the locale preference. The provided string is constrained to a maximum of 3 characters by the annotation, but this is a loose constraint for internal processing. Standard locale formats should be preferred.