fix(apple): localize receiver failure reasons

The receiver row showed the core's raw reason code (e.g. destination_exists),
breaking the never-expose-raw-reason-blobs rule. Map the core reason codes to the
existing L10n.Error.* messages via receiverReasonUiText, with a generic fallback so
a raw code is never surfaced.
This commit is contained in:
2026-07-24 18:45:02 +02:00
parent b65bac021f
commit 35f06a0b6b
2 changed files with 35 additions and 1 deletions

View File

@@ -251,7 +251,8 @@ private struct ReceiverRow: View {
.foregroundStyle(receiver.status.statusColor(colors))
}
if let reason = receiver.reason, !reason.isEmpty {
Text(reason).font(VniType.bodySmall).foregroundStyle(colors.foregroundLighter)
Text(receiverReasonUiText(reason).resolved())
.font(VniType.bodySmall).foregroundStyle(colors.foregroundLighter)
}
}
.frame(maxWidth: .infinity, alignment: .leading)