diff --git a/CHANGELOG.md b/CHANGELOG.md index f8cf0d375f..5a44c5d1d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## UNRELEASED ### Added ### Changed +* Replace items depositText w/ local i18n text ### Removed ### Fixed diff --git a/ui/src/main/java/io/snabble/sdk/ui/cart/shoppingcart/product/widget/description/ProductDescription.kt b/ui/src/main/java/io/snabble/sdk/ui/cart/shoppingcart/product/widget/description/ProductDescription.kt index 6df3e83eab..490c329fcb 100644 --- a/ui/src/main/java/io/snabble/sdk/ui/cart/shoppingcart/product/widget/description/ProductDescription.kt +++ b/ui/src/main/java/io/snabble/sdk/ui/cart/shoppingcart/product/widget/description/ProductDescription.kt @@ -7,8 +7,10 @@ import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp +import io.snabble.sdk.ui.R import io.snabble.sdk.ui.cart.shoppingcart.product.model.ProductItem @Composable @@ -34,8 +36,9 @@ internal fun ProductDescription(modifier: Modifier = Modifier, item: ProductItem else -> LineItemDescription(item.totalPriceText) } if (item.deposit != null) { + val depositText = stringResource(id = R.string.Snabble_Shoppingcart_deposit) Text( - text = "${item.priceText} + ${item.deposit.depositPriceText} ${item.deposit.depositText}", + text = "${item.priceText} + ${item.deposit.depositPriceText} $depositText", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurface )