File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
WordPress/Classes/ViewRelated/CustomPostTypes Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ struct CustomPostListView: View {
2222 . overlay {
2323 if viewModel. shouldDisplayEmptyView {
2424 let emptyText = details. labels. notFound. isEmpty
25- ? " No \( details. name) "
25+ ? String . localizedStringWithFormat ( Strings . emptyStateMessage , details. name)
2626 : details. labels. notFound
2727 EmptyStateView ( emptyText, systemImage: " doc.text " )
2828 } else if viewModel. shouldDisplayInitialLoading {
@@ -190,6 +190,14 @@ private struct ErrorRow: View {
190190 }
191191}
192192
193+ private enum Strings {
194+ static let emptyStateMessage = NSLocalizedString (
195+ " customPostList.emptyState.message " ,
196+ value: " No %1$@ " ,
197+ comment: " Empty state message when no custom posts exist. %1$@ is the post type name (e.g., 'Podcasts', 'Products'). "
198+ )
199+ }
200+
193201// MARK: - Previews
194202
195203#Preview( " Fetching Placeholders " ) {
You can’t perform that action at this time.
0 commit comments