Skip to content

Commit 4d560c8

Browse files
t-hamanoocean90
andauthored
i18n: Add context to labels related to CSS position properties (#49135)
* i18n: Add context to CSS position property labels * Update packages/block-editor/src/hooks/position.js Co-authored-by: Dominik Schilling <dominikschilling+git@gmail.com> * Update packages/block-editor/src/hooks/position.js Co-authored-by: Dominik Schilling <dominikschilling+git@gmail.com> --------- Co-authored-by: Dominik Schilling <dominikschilling+git@gmail.com>
1 parent 3efff77 commit 4d560c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/block-editor/src/hooks/position.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import classnames from 'classnames';
66
/**
77
* WordPress dependencies
88
*/
9-
import { __, sprintf } from '@wordpress/i18n';
9+
import { __, _x, sprintf } from '@wordpress/i18n';
1010
import { getBlockSupport, hasBlockSupport } from '@wordpress/blocks';
1111
import {
1212
BaseControl,
@@ -49,7 +49,7 @@ const DEFAULT_OPTION = {
4949
const STICKY_OPTION = {
5050
key: 'sticky',
5151
value: 'sticky',
52-
name: __( 'Sticky' ),
52+
name: _x( 'Sticky', 'Name for the value of the CSS position property' ),
5353
className: OPTION_CLASSNAME,
5454
__experimentalHint: __(
5555
'The block will stick to the top of the window instead of scrolling.'
@@ -59,7 +59,7 @@ const STICKY_OPTION = {
5959
const FIXED_OPTION = {
6060
key: 'fixed',
6161
value: 'fixed',
62-
name: __( 'Fixed' ),
62+
name: _x( 'Fixed', 'Name for the value of the CSS position property' ),
6363
className: OPTION_CLASSNAME,
6464
__experimentalHint: __(
6565
'The block will not move when the page is scrolled.'

0 commit comments

Comments
 (0)