Skip to content

Commit

Permalink
Site Editor: Fix the typo in the title label map (#53071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and ramonjd committed Jul 28, 2023
1 parent a44342f commit dacafc0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const interfaceLabels = {
};

const typeLabels = {
wp_template: __( 'Template Part' ),
wp_template: __( 'Template' ),
wp_template_part: __( 'Template Part' ),
wp_block: __( 'Pattern' ),
};
Expand Down Expand Up @@ -165,12 +165,11 @@ export default function Editor( { isLoading } ) {

let title;
if ( hasLoadedPost ) {
const type = typeLabels[ editedPostType ] ?? __( 'Template' );
title = sprintf(
// translators: A breadcrumb trail in browser tab. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
__( '%1$s ‹ %2$s ‹ Editor' ),
getTitle(),
type
typeLabels[ editedPostType ] ?? typeLabels.wp_template
);
}

Expand Down

0 comments on commit dacafc0

Please sign in to comment.