Skip to content

Commit 9b52eb3

Browse files
committed
Localize widget dsplay name
1 parent a6ae587 commit 9b52eb3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

WooCommerce/StoreWidgets/StoreInfoWidget.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct StoreInfoWidget: Widget {
2222
}
2323
}
2424
}
25-
.configurationDisplayName("Store Info")
25+
.configurationDisplayName(Localization.storeInfo)
2626
.supportedFamilies(enableWidgets ? [.systemMedium] : [])
2727
}
2828
}
@@ -151,6 +151,18 @@ private struct UnableToFetchView: View {
151151

152152
// MARK: Constants
153153

154+
/// Constants definition
155+
///
156+
private extension StoreInfoWidget {
157+
enum Localization {
158+
static let storeInfo = AppLocalizedString(
159+
"storeWidgets.displayName",
160+
value: "Store Info",
161+
comment: "Widget title, displayed when selecting which widget to add"
162+
)
163+
}
164+
}
165+
154166
/// Constants definition
155167
///
156168
private extension StoreInfoView {

0 commit comments

Comments
 (0)