From 98a37df79210fabdaa6219443ff6a56e14eaed93 Mon Sep 17 00:00:00 2001 From: Paulo Iankoski Date: Thu, 21 Mar 2024 20:52:40 -0300 Subject: [PATCH] refactor: add context to title i18n --- src/EventTickets/resources/components/EventTicketsList.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/EventTickets/resources/components/EventTicketsList.tsx b/src/EventTickets/resources/components/EventTicketsList.tsx index 082fbc1eed..07047dd179 100644 --- a/src/EventTickets/resources/components/EventTicketsList.tsx +++ b/src/EventTickets/resources/components/EventTicketsList.tsx @@ -1,4 +1,4 @@ -import {__} from '@wordpress/i18n'; +import {_x} from '@wordpress/i18n'; import EventTicketsListItem from './EventTicketsListItem'; import {EventTicketsListProps} from './types'; @@ -15,7 +15,9 @@ export default function EventTicketsList({ return (
-

{__('Select tickets', 'give')}

+

+ {_x('Select tickets', 'Title above the list of ticket types in the Event Tickets template', 'give')} +

{ticketTypes.map((ticketType) => { return (