Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct a typo: sapce -> space #52578

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/editor/src/components/post-schedule/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getFullPostScheduleLabel( dateAttribute ) {

const timezoneAbbreviation = getTimezoneAbbreviation();
const formattedDate = dateI18n(
// translators: If using a space between 'g:i' and 'a', use a non-breaking sapce.
// translators: If using a space between 'g:i' and 'a', use a non-breaking space.
_x( 'F j, Y g:i\xa0a', 'post schedule full date format' ),
date
);
Expand Down Expand Up @@ -62,7 +62,7 @@ export function getPostScheduleLabel(
return sprintf(
// translators: %s: Time of day the post is scheduled for.
__( 'Today at %s' ),
// translators: If using a space between 'g:i' and 'a', use a non-breaking sapce.
// translators: If using a space between 'g:i' and 'a', use a non-breaking space.
dateI18n( _x( 'g:i\xa0a', 'post schedule time format' ), date )
);
}
Expand All @@ -74,14 +74,14 @@ export function getPostScheduleLabel(
return sprintf(
// translators: %s: Time of day the post is scheduled for.
__( 'Tomorrow at %s' ),
// translators: If using a space between 'g:i' and 'a', use a non-breaking sapce.
// translators: If using a space between 'g:i' and 'a', use a non-breaking space.
dateI18n( _x( 'g:i\xa0a', 'post schedule time format' ), date )
);
}

if ( date.getFullYear() === now.getFullYear() ) {
return dateI18n(
// translators: If using a space between 'g:i' and 'a', use a non-breaking sapce.
// translators: If using a space between 'g:i' and 'a', use a non-breaking space.
_x( 'F j g:i\xa0a', 'post schedule date format without year' ),
date
);
Expand Down
Loading