Skip to content

Commit b9bb897

Browse files
committed
Update UI for the last refreshed label
1 parent 75754e2 commit b9bb897

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

WooCommerce/StoreWidgets/StoreInfoWidget.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ private struct StoreInfoView: View {
9494
}
9595
.frame(maxWidth: .infinity, alignment: .leading)
9696
}
97+
98+
Text(Localization.updatedAt("10:23 PM"))
99+
.statRangeStyle()
100+
.frame(maxWidth: .infinity, alignment: .leading)
97101
}
98102
.padding(.horizontal)
99103
}
@@ -187,6 +191,12 @@ private extension StoreInfoView {
187191
value: "Conversion",
188192
comment: "Conversion title label for the store info widget"
189193
)
194+
static func updatedAt(_ updatedTime: String) -> LocalizedString {
195+
let format = AppLocalizedString("storeWidgets.infoView.updatedAt",
196+
value: "Updated at: %1$@",
197+
comment: "Displays the time when the widget was last updated. %1$@ is the time to render.")
198+
return LocalizedString.localizedStringWithFormat(format, updatedTime)
199+
}
190200
}
191201

192202
enum Layout {

0 commit comments

Comments
 (0)