From 5253a651cfe2e70f49a5c9fbea88f0c2e13f19e7 Mon Sep 17 00:00:00 2001 From: Christos Date: Tue, 7 Jan 2025 12:46:29 +0200 Subject: [PATCH] i18n: Update use-my-domain/domain-input comp to use fixMe --- .../domains/use-my-domain/domain-input.jsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/client/components/domains/use-my-domain/domain-input.jsx b/client/components/domains/use-my-domain/domain-input.jsx index 3a4bf5b689289..8f80776917767 100644 --- a/client/components/domains/use-my-domain/domain-input.jsx +++ b/client/components/domains/use-my-domain/domain-input.jsx @@ -1,7 +1,7 @@ import { Card, Button, FormInputValidation, Gridicon } from '@automattic/components'; -import { englishLocales, useLocale } from '@automattic/i18n-utils'; -import { __, hasTranslation } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { Icon } from '@wordpress/icons'; +import { fixMe } from 'i18n-calypso'; import PropTypes from 'prop-types'; import { useEffect, useRef } from 'react'; import { connect } from 'react-redux'; @@ -25,7 +25,6 @@ function UseMyDomainInput( { validationError, } ) { const domainNameInput = useRef( null ); - const locale = useLocale(); useEffect( () => { shouldSetFocus && domainNameInput.current.focus(); @@ -47,11 +46,11 @@ function UseMyDomainInput( { } }; - const hasDomainPlaceholderLabel = - englishLocales.includes( locale ) || hasTranslation( 'yourgroovydomain.com' ); - const domainPlaceholderLabel = hasDomainPlaceholderLabel - ? __( 'yourgroovydomain.com' ) - : __( 'mydomain.com' ); + const domainPlaceholderLabel = fixMe( { + text: 'yourgroovydomain.com', + translation: __( 'yourgroovydomain.com' ), + fallback: __( 'mydomain.com' ), + } ); return (