Skip to content

Commit

Permalink
Update keywords for blocks (#14842)
Browse files Browse the repository at this point in the history
* Update keywords for blocks

* adding more keywords

* Update keywords
  • Loading branch information
scruffian authored Mar 5, 2020
1 parent 3627e15 commit 04bfea9
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 24 deletions.
1 change: 1 addition & 0 deletions extensions/blocks/business-hours/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const settings = {
_x( 'opening hours', 'block search term', 'jetpack' ),
_x( 'closing time', 'block search term', 'jetpack' ),
_x( 'schedule', 'block search term', 'jetpack' ),
_x( 'working day', 'block search term', 'jetpack' ),
],
attributes: {
days: {
Expand Down
10 changes: 6 additions & 4 deletions extensions/blocks/calendly/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { createBlock } from '@wordpress/blocks';

/**
Expand All @@ -25,9 +25,11 @@ export const settings = {
icon,
category: 'jetpack',
keywords: [
__( 'calendar', 'jetpack' ),
__( 'schedule', 'jetpack' ),
__( 'appointments', 'jetpack' ),
_x( 'calendar', 'block search term', 'jetpack' ),
_x( 'schedule', 'block search term', 'jetpack' ),
_x( 'appointments', 'block search term', 'jetpack' ),
_x( 'events', 'block search term', 'jetpack' ),
_x( 'dates', 'block search term', 'jetpack' ),
],
supports: {
align: true,
Expand Down
7 changes: 5 additions & 2 deletions extensions/blocks/eventbrite/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { G, Path, Rect, SVG } from '@wordpress/components';
import { createBlock } from '@wordpress/blocks';

Expand Down Expand Up @@ -41,7 +41,10 @@ export const settings = {
description: __( 'Embed Eventbrite event details and ticket checkout.', 'jetpack' ),
icon,
category: 'jetpack',
keywords: [ __( 'events', 'jetpack' ), __( 'tickets', 'jetpack' ) ],
keywords: [
_x( 'events', 'block search term', 'jetpack' ),
_x( 'tickets', 'block search term', 'jetpack' ),
],
supports: {
html: false,
},
Expand Down
2 changes: 2 additions & 0 deletions extensions/blocks/google-calendar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const settings = {
keywords: [
_x( 'events', 'block search term', 'jetpack' ),
_x( 'dates', 'block search term', 'jetpack' ),
_x( 'schedule', 'block search term', 'jetpack' ),
_x( 'appointments', 'block search term', 'jetpack' ),
],
icon,
category: 'jetpack',
Expand Down
1 change: 0 additions & 1 deletion extensions/blocks/map/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const settings = {
),
category: 'jetpack',
keywords: [
_x( 'map', 'block search term', 'jetpack' ),
_x( 'maps', 'block search term', 'jetpack' ),
_x( 'location', 'block search term', 'jetpack' ),
_x( 'navigation', 'block search term', 'jetpack' ),
Expand Down
8 changes: 4 additions & 4 deletions extensions/blocks/opentable/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { createBlock } from '@wordpress/blocks';

/**
Expand All @@ -27,9 +27,9 @@ export const settings = {
icon,
category: 'jetpack',
keywords: [
__( 'opentable', 'jetpack' ),
__( 'reservation', 'jetpack' ),
__( 'restaurant', 'jetpack' ),
_x( 'booking', 'block search term', 'jetpack' ),
_x( 'reservation', 'block search term', 'jetpack' ),
_x( 'restaurant', 'block search term', 'jetpack' ),
],
supports: {
align: true,
Expand Down
6 changes: 5 additions & 1 deletion extensions/blocks/pinterest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ export const settings = {

category: 'jetpack',

keywords: [ _x( 'social', 'block search term', 'jetpack' ) ],
keywords: [
_x( 'social', 'block search term', 'jetpack' ),
_x( 'pinboard', 'block search term', 'jetpack' ),
_x( 'pins', 'block search term', 'jetpack' ),
],

supports: {
align: false,
Expand Down
3 changes: 2 additions & 1 deletion extensions/blocks/recurring-payments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export const settings = {
category: 'jetpack',
keywords: [
_x( 'sell', 'block search term', 'jetpack' ),
_x( 'subscription', 'block search term', 'jetpack' ),
_x( 'subscriptions', 'block search term', 'jetpack' ),
'stripe',
_x( 'memberships', 'block search term', 'jetpack' ),
],
attributes: {
planId: {
Expand Down
6 changes: 3 additions & 3 deletions extensions/blocks/related-posts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const settings = {
category: 'jetpack',

keywords: [
_x( 'Similar content', 'block search term', 'jetpack' ),
_x( 'Linked', 'block search term', 'jetpack' ),
_x( 'Connected', 'block search term', 'jetpack' ),
_x( 'similar content', 'block search term', 'jetpack' ),
_x( 'linked', 'block search term', 'jetpack' ),
_x( 'connected', 'block search term', 'jetpack' ),
],

attributes: {
Expand Down
8 changes: 7 additions & 1 deletion extensions/blocks/revue/index.js
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 All @@ -17,6 +17,12 @@ export const settings = {
description: __( 'Add a subscription form for your Revue newsletter.', 'jetpack' ),
icon,
category: 'jetpack',
keywords: [
_x( 'email', 'block search term', 'jetpack' ),
_x( 'subscription', 'block search term', 'jetpack' ),
_x( 'newsletter', 'block search term', 'jetpack' ),
_x( 'mailing list', 'block search term', 'jetpack' ),
],
supports: {
html: false,
},
Expand Down
11 changes: 6 additions & 5 deletions extensions/blocks/simple-payments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ export const settings = {
) }
</p>
<p>
{ __(
'Good for collecting donations or payments for products and services.',
'jetpack'
) }
{ __( 'Good for collecting donations or payments for products and services.', 'jetpack' ) }
</p>
<ExternalLink href={ supportLink }>{ __( 'Support reference', 'jetpack' ) }</ExternalLink>
</Fragment>
Expand All @@ -61,8 +58,12 @@ export const settings = {
category: 'jetpack',

keywords: [
_x( 'shop', 'block search term', 'jetpack' ),
_x( 'buy', 'block search term', 'jetpack' ),
_x( 'commerce', 'block search term', 'jetpack' ),
_x( 'products', 'block search term', 'jetpack' ),
_x( 'purchase', 'block search term', 'jetpack' ),
_x( 'sell', 'block search term', 'jetpack' ),
_x( 'shop', 'block search term', 'jetpack' ),
'PayPal',
],

Expand Down
4 changes: 4 additions & 0 deletions extensions/blocks/tiled-gallery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,13 @@ export const settings = {
: '' ),
icon,
keywords: [
_x( 'columns', 'block search term', 'jetpack' ),
_x( 'images', 'block search term', 'jetpack' ),
_x( 'photos', 'block search term', 'jetpack' ),
_x( 'pictures', 'block search term', 'jetpack' ),
_x( 'square', 'block search term', 'jetpack' ),
_x( 'circle', 'block search term', 'jetpack' ),
_x( 'mosaic', 'block search term', 'jetpack' ),
],
styles: layoutStylesWithLabels,
supports: {
Expand Down
8 changes: 6 additions & 2 deletions extensions/blocks/wordads/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { ExternalLink, Path, SVG } from '@wordpress/components';
import { Fragment } from '@wordpress/element';

Expand Down Expand Up @@ -58,7 +58,11 @@ export const settings = {

category: 'jetpack',

keywords: [ __( 'ads', 'jetpack' ), 'WordAds', __( 'Advertisement', 'jetpack' ) ],
keywords: [
_x( 'ads', 'block search term', 'jetpack' ),
'WordAds',
_x( 'advertisement', 'block search term', 'jetpack' ),
],

supports: {
align: [ 'left', 'center', 'right' ],
Expand Down

0 comments on commit 04bfea9

Please sign in to comment.