Skip to content

Commit

Permalink
Reading Settings: Remove translation check for the label of the defau…
Browse files Browse the repository at this point in the history
…lt value of the 'Default posts page' input (#73239)

* Reading Settings: Remove translation check for default value of 'Default posts page' input

* Revert removal of localizeUrl dependency import
  • Loading branch information
mashikag committed Feb 10, 2023
1 parent 4e6043d commit 9b1e0a5
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useLocale, localizeUrl } from '@automattic/i18n-utils';
import { useI18n } from '@wordpress/react-i18n';
import { localizeUrl } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';
import { connect } from 'react-redux';
import FormFieldset from 'calypso/components/forms/form-fieldset';
Expand Down Expand Up @@ -70,8 +69,6 @@ const YourHomepageDisplaysSetting = ( {
disabled,
siteId,
}: YourHomepageDisplaysSettingProps ) => {
const { hasTranslation } = useI18n();
const locale = useLocale();
const translate = useTranslate();

const { data: pages, isLoading } = useDropdownPagesQuery<
Expand Down Expand Up @@ -133,11 +130,7 @@ const YourHomepageDisplaysSetting = ( {
value={ page_for_posts }
onChange={ handlePageForPostsChange }
>
<option value="">
{ locale.startsWith( 'en' ) || hasTranslation( '—— None ——' )
? translate( '—— None ——' )
: translate( '—— Select ——' ) }
</option>
<option value="">{ translate( '—— None ——' ) }</option>
{ pages?.map( ( page ) => {
return (
<option
Expand Down

0 comments on commit 9b1e0a5

Please sign in to comment.