[android-components](../index.md) / [mozilla.components.feature.addons.ui](index.md) / [toLocalizedString](./to-localized-string.md)

# toLocalizedString

`fun `[`Status`](../mozilla.components.feature.addons.update/-addon-updater/-status/index.md)`?.toLocalizedString(context: <ERROR CLASS>): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/addons/src/main/java/mozilla/components/feature/addons/ui/Extensions.kt#L42)

Get the localized string for an [AddonUpdater.UpdateAttempt.status](../mozilla.components.feature.addons.update/-addon-updater/-update-attempt/status.md).

