---
title: "LocalResources"
description: "The Android [Resources]. This will be updated when [LocalConfiguration] changes, to ensure that
calls to APIs such as [Resources.getString] return updated values."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
val LocalResources =
compositionLocalWithComputedDefaultOf<Resources> {
    LocalConfiguration.currentValue
    LocalContext.currentValue.resources
}
```


The Android `Resources`. This will be updated when `LocalConfiguration` changes, to ensure that
calls to APIs such as `Resources.getString` return updated values.



