diff --git a/CHANGELOG.md b/CHANGELOG.md index d815c28..f25adc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog -## v1.0.0 - [November 25, 2025] +## v1.0.1 - [November 25, 2025] + +- Fixed: "Seconds" label is always plural + +## v1.0.0 - Init plugin diff --git a/mbs-countdown-block.php b/mbs-countdown-block.php index 0a679e0..c67e78d 100644 --- a/mbs-countdown-block.php +++ b/mbs-countdown-block.php @@ -5,7 +5,7 @@ * Requires: 6.5.0 * Requires at least: 6.7.0 * Requires PHP: 8.2 - * Version: 1.0.0 + * Version: 1.0.1 * Author: K.J. Roelke * Author URI: https://www.kjroelke.online * License: GPL-3.0-or-later diff --git a/src/_utils/CountdownHandler.ts b/src/_utils/CountdownHandler.ts index d967cff..8a081a2 100644 --- a/src/_utils/CountdownHandler.ts +++ b/src/_utils/CountdownHandler.ts @@ -126,9 +126,9 @@ export class CountdownHandler { private createCountdownUnit( value: number, unitLabel: string ): string { const label = - 'seconds' !== unitLabel && '01' === padZero( value ) - ? unitLabel.slice( 0, -1 ) - : unitLabel; + 'Seconds' !== unitLabel && '01' === padZero( value ) + ? unitLabel.slice( 0, -1 ) + : unitLabel; return `
${ padZero( value ) }
diff --git a/src/components/CountdownUnit.tsx b/src/components/CountdownUnit.tsx index 582ecef..c6ae11d 100644 --- a/src/components/CountdownUnit.tsx +++ b/src/components/CountdownUnit.tsx @@ -16,7 +16,7 @@ export default function CountdownUnit( props: CountdownUnitProps ) { labelColor, } = props; const label = - 'seconds' !== unitLabel && '01' === timeRemaining + 'Seconds' !== unitLabel && '01' === timeRemaining ? unitLabel.slice( 0, -1 ) : unitLabel; return (