setSystemLocales

suspend fun setSystemLocales(locales: List<String>)(source)

Sets the device's languages (Settings › Languages) until detach, see setAnimations: BCP-47 tags in preference order, 1 to 16 of them ("fr-FR", "en"). Every app that follows the system sees the change as a configuration change; an app with its own languages (App.setLocales) keeps them. Android has no shell command for this: the Tap driver app applies it as Settings' language picker does, and the result is read back (FailureReason.DEVICE_SETTING when the device reports another list). Read back with DeviceInfo.systemLocales.


suspend fun setSystemLocales(first: String, vararg more: String)(source)

setSystemLocales with the tags as arguments.