Skip to content

Commit

Permalink
i18n: Add context to labels related to CSS position properties (#49135)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
t-hamano and ocean90 authored Mar 24, 2023
1 parent 3efff77 commit 4d560c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/src/hooks/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import classnames from 'classnames';
/**
* WordPress dependencies
*/
import { __, sprintf } from '@wordpress/i18n';
import { __, _x, sprintf } from '@wordpress/i18n';
import { getBlockSupport, hasBlockSupport } from '@wordpress/blocks';
import {
BaseControl,
Expand Down Expand Up @@ -49,7 +49,7 @@ const DEFAULT_OPTION = {
const STICKY_OPTION = {
key: 'sticky',
value: 'sticky',
name: __( 'Sticky' ),
name: _x( 'Sticky', 'Name for the value of the CSS position property' ),
className: OPTION_CLASSNAME,
__experimentalHint: __(
'The block will stick to the top of the window instead of scrolling.'
Expand All @@ -59,7 +59,7 @@ const STICKY_OPTION = {
const FIXED_OPTION = {
key: 'fixed',
value: 'fixed',
name: __( 'Fixed' ),
name: _x( 'Fixed', 'Name for the value of the CSS position property' ),
className: OPTION_CLASSNAME,
__experimentalHint: __(
'The block will not move when the page is scrolled.'
Expand Down

0 comments on commit 4d560c8

Please sign in to comment.