Function

Locales

A DeviceConfigurationOverride that overrides the locales for the contained content.

Locales

Source set: Android
public fun DeviceConfigurationOverride.Companion.Locales(
    locales: LocaleList
): DeviceConfigurationOverride

A DeviceConfigurationOverride that overrides the locales for the contained content.

This will change resource resolution for the content under test, and also override the layout direction as specified by the locales.

Parameters

locales the LocaleList to use for the content under test.

Return

a DeviceConfigurationOverride that specifies the locales for the content under test.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: