* Make WooCommerce brand localizable

* Make HeaderLogo aria-label localizable
This commit is contained in:
Albert Juhé Lluveras 2019-11-14 16:24:42 +01:00 committed by GitHub
parent 931172ff89
commit 319cc65d22
2 changed files with 5 additions and 2 deletions

View File

@ -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,
} );

View File

@ -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 ) => {