import React from 'react'; import { __, _n, sprintf } from '@wordpress/i18n'; import { formatBytes, numberFormat } from '../../lib/i18n'; /** Pro users' version of the band: what has been saved so far, from the real running total. */ export default function SavedByPro( { bytes, grown = 0 }: { bytes: number; grown?: number } ) { return (
{ __( 'Saved by Pro', 'image-sizes' ) } { __( 'PRO', 'image-sizes' ) } { formatBytes( bytes ) } { __( 'Net space freed so far by compression, conversion and cleanup.', 'image-sizes' ) } { grown > 0 && ( { sprintf( // translators: %s is the number of files. _n( '%s file got larger and is counted in this total.', '%s files got larger and are counted in this total.', grown, 'image-sizes' ), numberFormat( grown ) ) } ) }
); }