Make WooCommerce brand localizable (https://github.com/woocommerce/woocommerce-admin/pull/3247)
* Make WooCommerce brand localizable * Make HeaderLogo aria-label localizable
This commit is contained in:
parent
931172ff89
commit
319cc65d22
|
@ -2,6 +2,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { Component } from '@wordpress/element';
|
||||
import { compose } from '@wordpress/compose';
|
||||
import classNames from 'classnames';
|
||||
|
@ -15,7 +16,9 @@ class HeaderLogo extends Component {
|
|||
render() {
|
||||
const { isJetpackConnected } = this.props;
|
||||
|
||||
const ariaLabel = ! isJetpackConnected ? 'Jetpack + WooCommerce' : 'WooCommerce';
|
||||
const ariaLabel = ! isJetpackConnected
|
||||
? __( 'Jetpack + WooCommerce', 'woocommerce-admin' )
|
||||
: __( 'WooCommerce', 'woocommerce-admin' );
|
||||
const classes = classNames( 'woocommerce-profile-wizard__header-logo', {
|
||||
'woocommerce-profile-wizard__header-logo-with-jetpack': ! isJetpackConnected,
|
||||
} );
|
||||
|
|
|
@ -97,7 +97,7 @@ class Header extends Component {
|
|||
type={ isEmbedded ? 'wp-admin' : 'wc-admin' }
|
||||
onClick={ this.trackLinkClick }
|
||||
>
|
||||
WooCommerce
|
||||
{ __( 'WooCommerce', 'woocommerce-admin' ) }
|
||||
</Link>
|
||||
</span>
|
||||
{ _sections.map( ( section, i ) => {
|
||||
|
|
Loading…
Reference in New Issue