From 23a8f208f4d8d918583bc6022e0f3cf15d59291d Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 14 Feb 2024 11:40:59 +0000 Subject: [PATCH 1/2] Make 'All pages' view label consistent with template and patterns --- .../edit-site/src/components/sidebar-dataviews/default-views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 98fd3f98529e90..3f57c928070412 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -49,7 +49,7 @@ const DEFAULT_PAGE_BASE = { export const DEFAULT_VIEWS = { page: [ { - title: _x( 'All', 'pages' ), + title: _x( 'All pages', 'pages' ), slug: 'all', view: DEFAULT_PAGE_BASE, }, From 3595e9e2d0bf7ca86f10eea749436fb968310591 Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 14 Feb 2024 14:34:34 +0000 Subject: [PATCH 2/2] Use __() --- .../src/components/sidebar-dataviews/default-views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 3f57c928070412..2cdfc154b0992a 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { trash } from '@wordpress/icons'; /** @@ -49,7 +49,7 @@ const DEFAULT_PAGE_BASE = { export const DEFAULT_VIEWS = { page: [ { - title: _x( 'All pages', 'pages' ), + title: __( 'All pages' ), slug: 'all', view: DEFAULT_PAGE_BASE, },