Skip to content

Commit

Permalink
add traslation context
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Aug 7, 2024
1 parent 465737d commit f40233f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/dataviews/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';

/**
* Internal dependencies
Expand Down Expand Up @@ -59,8 +59,14 @@ export const sortLabels = {
desc: __( 'Sort descending' ),
};
export const sortLabelsShort = {
asc: __( 'Asc' ),
desc: __( 'Desc' ),
asc: _x(
'Asc',
'Short label for ascending sorting, should be at most 6 characters'
),
desc: _x(
'Desc',
'Short label for descending sorting, should be at most 6 characters'
),
};

// View layouts.
Expand Down

0 comments on commit f40233f

Please sign in to comment.