From 4a244f629468f07897df68e22d85c433da994f61 Mon Sep 17 00:00:00 2001 From: Pieterjan Deneys Date: Sun, 26 Nov 2023 17:38:29 +0100 Subject: [PATCH] Add translator comments for strings containing date formats (#56531) --- .../src/components/date-format-picker/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/block-editor/src/components/date-format-picker/index.js b/packages/block-editor/src/components/date-format-picker/index.js index 82a7b4cf760fc..7a2ed46b4a9b0 100644 --- a/packages/block-editor/src/components/date-format-picker/index.js +++ b/packages/block-editor/src/components/date-format-picker/index.js @@ -78,12 +78,19 @@ function NonDefaultControls( { format, onChange } ) { // formats. const suggestedFormats = [ ...new Set( [ + /* translators: See https://www.php.net/manual/datetime.format.php */ 'Y-m-d', + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'n/j/Y', 'short date format' ), + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'n/j/Y g:i A', 'short date format with time' ), + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'M j, Y', 'medium date format' ), + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'M j, Y g:i A', 'medium date format with time' ), + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'F j, Y', 'long date format' ), + /* translators: See https://www.php.net/manual/datetime.format.php */ _x( 'M j', 'short date format without the year' ), ] ), ];