Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{ Object.keys( parts ).map((filename)=>
<li>
{ parts[ filename ] }
{ data.count_template_parts[ filename ] > 1 && (
<span>
<br>
{sprintf(
/* translators: %s: The number of times that a template part file was included in the page */
_nx( 'Included %s time', 'Included %s times', data.count_template_parts[ filename ], 'template parts', 'query-monitor' ),
data.count_template_parts[ filename ]
)}
</span>
)}
</li>
)}
function _nx(single: string, plural: string, count: number, context: string, ...args: any[]): string {
return wpi18n.sprintf(wpi18n._nx(single, plural, count, context, slug), ...args) as string;
}
export function _nx() {
return wpI18n_nx( ...addTextdomain( arguments ) );
}