You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _inc/client/README.md
+1-16
Original file line number
Diff line number
Diff line change
@@ -64,22 +64,7 @@ Every action creator defined in the **Admin Page** returns a Promise and is buil
64
64
The **Admin Page** takes advantage of two core WordPress packages for internationalization purposes:
65
65
66
66
-[`@wordpress/i18n`](https://www.npmjs.com/package/@wordpress/i18n) gives us access to internationalization functions we're used to in WordPress: `__n`, `_n`, `_x`, `_nx`, and `sprintf`.
67
-
-[`@wordpress/element`](https://www.npmjs.com/package/@wordpress/element) and its `createInterpolateElement` function allow us to use React elements in strings. `createInterpolateElement` is available in WordPress 5.5 and in latest versions of the Gutenberg plugin, but it is not available in WordPress 5.4, which we still support. We consequently rely on a wrapper, `jetpackCreateInterpolateElement`.
__( '<FlagIcon /> Still confused? <a>Check out documentation for more!</a>', 'jetpack' ),
76
-
{
77
-
FlagIcon:<Gridicon icon="flag" size={ 64 } />
78
-
a:<a href="https://jetpack.com"/>,
79
-
}
80
-
);
81
-
};
82
-
```
67
+
-[`@wordpress/element`](https://www.npmjs.com/package/@wordpress/element) and its `createInterpolateElement` function allow us to use React elements in strings.
@@ -57,7 +61,7 @@ class DashPhoton extends Component {
57
61
<pclassName="jp-dash-item__description">
58
62
{this.props.isOfflineMode
59
63
? __('Unavailable in Offline Mode','jetpack')
60
-
: jetpackCreateInterpolateElement(
64
+
: createInterpolateElement(
61
65
__(
62
66
"<a>Activate</a> to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.",
@@ -151,7 +151,7 @@ class DashScan extends Component {
151
151
returnrenderCard({
152
152
className: 'jp-dash-item__is-inactive',
153
153
status: 'not-registered',
154
-
content: jetpackCreateInterpolateElement(
154
+
content: createInterpolateElement(
155
155
__(
156
156
'VaultPress is having difficulties scanning. Please make sure your <keyLink>registration key is entered</keyLink>. If you require further assistance please <supportLink>contact support</supportLink>.',
157
157
'jetpack'
@@ -213,7 +213,7 @@ class DashScan extends Component {
@@ -179,7 +183,7 @@ export class ConnectButton extends React.Component {
179
183
<div>
180
184
{!this.props.isSiteConnected&&(
181
185
<pclassName="jp-banner__tos-blurb">
182
-
{jetpackCreateInterpolateElement(
186
+
{createInterpolateElement(
183
187
__(
184
188
'By clicking the button below, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.',
0 commit comments