Skip to content

Commit

Permalink
I18n
Browse files Browse the repository at this point in the history
  • Loading branch information
david-szabo97 committed Sep 24, 2020
1 parent 35a4b29 commit 1fd55ff
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import { getPathAndQueryString } from '@wordpress/url';
import { __experimentalNavigationGroup as NavigationGroup } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -30,7 +31,7 @@ export default function PageSwitcher( { onChangePage } ) {

return (
<>
<NavigationGroup title="Pages">
<NavigationGroup title={ __( 'Pages' ) }>
<NavigationEntityItems
kind="postType"
name="page"
Expand All @@ -45,7 +46,7 @@ export default function PageSwitcher( { onChangePage } ) {
/>
</NavigationGroup>

<NavigationGroup title="Categories">
<NavigationGroup title={ __( 'Categories' ) }>
<NavigationEntityItems
kind="taxonomy"
name="category"
Expand All @@ -60,7 +61,7 @@ export default function PageSwitcher( { onChangePage } ) {
/>
</NavigationGroup>

<NavigationGroup title="Posts">
<NavigationGroup title={ __( 'Posts' ) }>
<NavigationEntityItems
kind="postType"
name="post"
Expand Down

0 comments on commit 1fd55ff

Please sign in to comment.