Skip to content

Commit

Permalink
Update keywords for blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 28, 2020
1 parent 8d04b28 commit bd03418
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 18 deletions.
8 changes: 4 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,9 @@ 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' ),
],
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
1 change: 1 addition & 0 deletions extensions/blocks/google-calendar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const settings = {
keywords: [
_x( 'events', 'block search term', 'jetpack' ),
_x( 'dates', 'block search term', 'jetpack' ),
_x( 'schedule', '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
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
7 changes: 6 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,11 @@ 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' ),
],
supports: {
html: false,
},
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 bd03418

Please sign in to comment.