Skip to content

Commit

Permalink
Add translator comments (#91379)
Browse files Browse the repository at this point in the history
  • Loading branch information
niranjan-uma-shankar authored Jun 3, 2024
1 parent 3858f2b commit 44563b5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion client/blocks/importer/wordpress/upgrade-plan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export const UpgradePlan: React.FunctionComponent< Props > = ( props: Props ) =>
const upgradeCtaCopy = hasEnTranslation(
'Migrations are exclusive to the %(planName)s plan. Check out all its benefits, and upgrade to get started.'
)
? translate(
? // translators: %(planName)s is a plan name. E.g. Commerce plan.
translate(
'Migrations are exclusive to the %(planName)s plan. Check out all its benefits, and upgrade to get started.',
{
args: {
Expand Down
3 changes: 2 additions & 1 deletion client/dev-tools/components/dev-tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ const DevTools = () => {
const upgradeCtaCopy = hasEnTranslation(
'Upgrade to the %(planName)s plan or higher to get access to all developer tools'
)
? translate(
? // translators: %(planName)s is a plan name. E.g. Business plan.
translate(
'Upgrade to the %(planName)s plan or higher to get access to all developer tools',
{
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export const MigrationAssistanceModal: React.FunctionComponent< MigrationAssista
{ hasEnTranslation(
'Subscribe to the %(planName)s plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.'
)
? translate(
? // translators: %(planName)s is a plan name. E.g. Commerce plan.
translate(
'Subscribe to the %(planName)s plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.',
{
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const SiteMigrationImportOrMigrate: Step = function ( { navigation } ) {
const options = [
{
label: hasEnTranslation( 'Everything (requires a %(planName)s Plan)' )
? translate( 'Everything (requires a %(planName)s Plan)', {
? // translators: %(planName)s is a plan name. E.g. Commerce plan.
translate( 'Everything (requires a %(planName)s Plan)', {
args: { planName: getPlan( PLAN_BUSINESS )?.getTitle() ?? '' },
} )
: translate( 'Everything (requires a Creator Plan)' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export function EntrepreneurPlan( props: EntrepreneurPlanProps ) {
hasTranslation(
"Secure the full benefits of the %(planName)s plan. Purchase today and maximize your store's potential!"
)
? translate(
? // translators: %(planName)s is a plan name. E.g. Commerce plan.
translate(
"Secure the full benefits of the %(planName)s plan. Purchase today and maximize your store's potential!",
{
args: {
Expand Down
3 changes: 2 additions & 1 deletion client/my-sites/plans/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ class Plans extends Component {

const entrepreneurTrialSubHeaderText =
isEnglishLocale || hasEntrepreneurTrialSubHeaderTextTranslation
? translate( "Discover what's available in your %(planName)s plan.", {
? // translators: %(planName)s is a plan name. E.g. Commerce plan.
translate( "Discover what's available in your %(planName)s plan.", {
args: {
planName: getPlan( PLAN_ECOMMERCE )?.getTitle() ?? '',
},
Expand Down

0 comments on commit 44563b5

Please sign in to comment.