Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update keywords for blocks #14842

Merged
merged 3 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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' ),
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about also mailing list?
Might be redundant if the autocomplete matches mail with email anyway. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea 👍

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' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extreme nitpick ahead: is this the only capitalized keyword? 😄

],

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