@wordpress/block-editor 14.3.10 → 14.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/block-card/index.js +2 -2
- package/build/components/block-card/index.js.map +1 -1
- package/build/components/block-patterns-paging/index.js +1 -1
- package/build/components/block-patterns-paging/index.js.map +1 -1
- package/build/components/block-variation-transforms/index.js +2 -2
- package/build/components/block-variation-transforms/index.js.map +1 -1
- package/build/components/inserter-button/index.native.js +1 -1
- package/build/components/inserter-button/index.native.js.map +1 -1
- package/build/components/spacing-sizes-control/index.js +2 -2
- package/build/components/spacing-sizes-control/index.js.map +1 -1
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +3 -3
- package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build/components/url-input/index.js +1 -1
- package/build/components/url-input/index.js.map +1 -1
- package/build/components/use-block-commands/index.js +1 -1
- package/build/components/use-block-commands/index.js.map +1 -1
- package/build/utils/get-font-styles-and-weights.js +1 -1
- package/build/utils/get-font-styles-and-weights.js.map +1 -1
- package/build-module/components/block-card/index.js +3 -3
- package/build-module/components/block-card/index.js.map +1 -1
- package/build-module/components/block-patterns-paging/index.js +1 -1
- package/build-module/components/block-patterns-paging/index.js.map +1 -1
- package/build-module/components/block-variation-transforms/index.js +2 -2
- package/build-module/components/block-variation-transforms/index.js.map +1 -1
- package/build-module/components/inserter-button/index.native.js +1 -1
- package/build-module/components/inserter-button/index.native.js.map +1 -1
- package/build-module/components/spacing-sizes-control/index.js +3 -3
- package/build-module/components/spacing-sizes-control/index.js.map +1 -1
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -4
- package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
- package/build-module/components/url-input/index.js +1 -1
- package/build-module/components/url-input/index.js.map +1 -1
- package/build-module/components/use-block-commands/index.js +1 -1
- package/build-module/components/use-block-commands/index.js.map +1 -1
- package/build-module/utils/get-font-styles-and-weights.js +2 -2
- package/build-module/utils/get-font-styles-and-weights.js.map +1 -1
- package/package.json +5 -5
- package/src/components/block-card/index.js +3 -3
- package/src/components/block-patterns-paging/index.js +1 -1
- package/src/components/block-variation-transforms/index.js +2 -2
- package/src/components/inserter-button/index.native.js +1 -1
- package/src/components/spacing-sizes-control/index.js +3 -3
- package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -4
- package/src/components/url-input/index.js +1 -1
- package/src/components/use-block-commands/index.js +1 -1
- package/src/utils/get-font-styles-and-weights.js +2 -2
|
@@ -45,7 +45,7 @@ function VariationsButtons( {
|
|
|
45
45
|
selectedValue === variation.name
|
|
46
46
|
? variation.title
|
|
47
47
|
: sprintf(
|
|
48
|
-
/* translators: %s:
|
|
48
|
+
/* translators: %s: Block or block variation name. */
|
|
49
49
|
__( 'Transform to %s' ),
|
|
50
50
|
variation.title
|
|
51
51
|
)
|
|
@@ -127,7 +127,7 @@ function VariationsToggleGroupControl( {
|
|
|
127
127
|
selectedValue === variation.name
|
|
128
128
|
? variation.title
|
|
129
129
|
: sprintf(
|
|
130
|
-
/* translators: %s:
|
|
130
|
+
/* translators: %s: Block or block variation name. */
|
|
131
131
|
__( 'Transform to %s' ),
|
|
132
132
|
variation.title
|
|
133
133
|
)
|
|
@@ -54,7 +54,7 @@ class MenuItem extends Component {
|
|
|
54
54
|
const accessibilityLabelFormat = blockIsNew
|
|
55
55
|
? // translators: Newly available block name. %s: The localized block name
|
|
56
56
|
__( '%s block, newly available' )
|
|
57
|
-
: // translators: Block name.
|
|
57
|
+
: // translators: %s: Block name e.g. "Image block"
|
|
58
58
|
__( '%s block' );
|
|
59
59
|
const accessibilityLabel = sprintf(
|
|
60
60
|
accessibilityLabelFormat,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__experimentalVStack as VStack,
|
|
8
8
|
} from '@wordpress/components';
|
|
9
9
|
import { useState } from '@wordpress/element';
|
|
10
|
-
import {
|
|
10
|
+
import { _x, sprintf } from '@wordpress/i18n';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
@@ -89,8 +89,8 @@ export default function SpacingSizesControl( {
|
|
|
89
89
|
ALL_SIDES.includes( view ) && showSideInLabel ? LABELS[ view ] : '';
|
|
90
90
|
|
|
91
91
|
const label = sprintf(
|
|
92
|
-
// translators:
|
|
93
|
-
|
|
92
|
+
// translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
|
|
93
|
+
_x( '%1$s %2$s', 'spacing' ),
|
|
94
94
|
labelProp,
|
|
95
95
|
sideLabel
|
|
96
96
|
).trim();
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { useSelect } from '@wordpress/data';
|
|
15
15
|
import { useState, useMemo } from '@wordpress/element';
|
|
16
16
|
import { usePrevious } from '@wordpress/compose';
|
|
17
|
-
import { __, sprintf } from '@wordpress/i18n';
|
|
17
|
+
import { __, _x, sprintf } from '@wordpress/i18n';
|
|
18
18
|
import { settings } from '@wordpress/icons';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -124,7 +124,7 @@ export default function SpacingInputControl( {
|
|
|
124
124
|
...spacingSizes,
|
|
125
125
|
{
|
|
126
126
|
name: ! isMixed
|
|
127
|
-
? // translators: A custom measurement,
|
|
127
|
+
? // translators: %s: A custom measurement, e.g. a number followed by a unit like 12px.
|
|
128
128
|
sprintf( __( 'Custom (%s)' ), value )
|
|
129
129
|
: __( 'Mixed' ),
|
|
130
130
|
slug: 'custom',
|
|
@@ -200,8 +200,8 @@ export default function SpacingInputControl( {
|
|
|
200
200
|
const typeLabel = showSideInLabel ? type?.toLowerCase() : type;
|
|
201
201
|
|
|
202
202
|
const ariaLabel = sprintf(
|
|
203
|
-
// translators: 1: The side of the block being modified (top, bottom, left
|
|
204
|
-
|
|
203
|
+
// translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
|
|
204
|
+
_x( '%1$s %2$s', 'spacing' ),
|
|
205
205
|
sideLabel,
|
|
206
206
|
typeLabel
|
|
207
207
|
).trim();
|
|
@@ -196,7 +196,7 @@ class URLInput extends Component {
|
|
|
196
196
|
if ( !! suggestions.length ) {
|
|
197
197
|
this.props.debouncedSpeak(
|
|
198
198
|
sprintf(
|
|
199
|
-
/* translators: %
|
|
199
|
+
/* translators: %d: number of results. */
|
|
200
200
|
_n(
|
|
201
201
|
'%d result found, use up and down arrow keys to navigate.',
|
|
202
202
|
'%d results found, use up and down arrow keys to navigate.',
|
|
@@ -114,7 +114,7 @@ export const useTransformCommands = () => {
|
|
|
114
114
|
const { name, title, icon } = transformation;
|
|
115
115
|
return {
|
|
116
116
|
name: 'core/block-editor/transform-to-' + name.replace( '/', '-' ),
|
|
117
|
-
|
|
117
|
+
/* translators: %s: Block or block variation name. */
|
|
118
118
|
label: sprintf( __( 'Transform to %s' ), title ),
|
|
119
119
|
icon: <BlockIcon icon={ icon } />,
|
|
120
120
|
callback: ( { close } ) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { _x,
|
|
4
|
+
import { _x, sprintf } from '@wordpress/i18n';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -173,7 +173,7 @@ export function getFontStylesAndWeights( fontFamilyFaces ) {
|
|
|
173
173
|
? weightName
|
|
174
174
|
: sprintf(
|
|
175
175
|
/* translators: 1: Font weight name. 2: Font style name. */
|
|
176
|
-
|
|
176
|
+
_x( '%1$s %2$s', 'font' ),
|
|
177
177
|
weightName,
|
|
178
178
|
styleName
|
|
179
179
|
);
|