Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client
This commit is contained in:
parent
6f23a5ae68
commit
1ba60ee69d
|
@ -224,7 +224,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
const getTabs = () => {
|
||||
const activity = {
|
||||
name: 'activity',
|
||||
title: __( 'Activity', 'woocommerce-admin' ),
|
||||
title: __( 'Activity', 'woocommerce' ),
|
||||
icon: <IconFlag />,
|
||||
unread: hasUnreadNotes || hasAbbreviatedNotifications,
|
||||
visible:
|
||||
|
@ -233,7 +233,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
|
||||
const setup = {
|
||||
name: 'setup',
|
||||
title: __( 'Finish setup', 'woocommerce-admin' ),
|
||||
title: __( 'Finish setup', 'woocommerce' ),
|
||||
icon: <SetupProgress />,
|
||||
onClick: () => {
|
||||
const currentLocation = window.location.href;
|
||||
|
@ -265,7 +265,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
|
||||
const help = {
|
||||
name: 'help',
|
||||
title: __( 'Help', 'woocommerce-admin' ),
|
||||
title: __( 'Help', 'woocommerce' ),
|
||||
icon: <Icon icon={ helpIcon } />,
|
||||
visible:
|
||||
currentUserCan( 'manage_woocommerce' ) &&
|
||||
|
@ -284,7 +284,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
|
||||
const previewSite = {
|
||||
name: 'previewSite',
|
||||
title: __( 'Preview site', 'woocommerce-admin' ),
|
||||
title: __( 'Preview site', 'woocommerce' ),
|
||||
icon: <Icon icon={ external } />,
|
||||
visible: query.page === 'wc-admin' && query.task === 'appearance',
|
||||
onClick: () => {
|
||||
|
@ -355,7 +355,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
return (
|
||||
<div>
|
||||
<H id={ headerId } className="screen-reader-text">
|
||||
{ __( 'Store Activity', 'woocommerce-admin' ) }
|
||||
{ __( 'Store Activity', 'woocommerce' ) }
|
||||
</H>
|
||||
<Section
|
||||
component="aside"
|
||||
|
@ -390,12 +390,12 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
|
|||
<HighlightTooltip
|
||||
delay={ 1000 }
|
||||
useAnchor={ true }
|
||||
title={ __( "We're here for help", 'woocommerce-admin' ) }
|
||||
title={ __( "We're here for help", 'woocommerce' ) }
|
||||
content={ __(
|
||||
'If you have any questions, feel free to explore the WooCommerce docs listed here.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
closeButtonText={ __( 'Got it', 'woocommerce-admin' ) }
|
||||
closeButtonText={ __( 'Got it', 'woocommerce' ) }
|
||||
id="activity-panel-tab-help"
|
||||
onClose={ () => closedHelpPanelHighlight() }
|
||||
onShow={ () => recordEvent( 'help_tooltip_view' ) }
|
||||
|
|
|
@ -38,6 +38,6 @@ export const DisplayIcon = () => (
|
|||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
{ __( 'Display', 'woocommerce-admin' ) }
|
||||
{ __( 'Display', 'woocommerce' ) }
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -35,7 +35,7 @@ const LAYOUTS = [
|
|||
label: (
|
||||
<>
|
||||
<SingleColumnIcon />
|
||||
{ __( 'Single column', 'woocommerce-admin' ) }
|
||||
{ __( 'Single column', 'woocommerce' ) }
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
@ -44,7 +44,7 @@ const LAYOUTS = [
|
|||
label: (
|
||||
<>
|
||||
<TwoColumnsIcon />
|
||||
{ __( 'Two columns', 'woocommerce-admin' ) }
|
||||
{ __( 'Two columns', 'woocommerce' ) }
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
@ -88,7 +88,7 @@ export const DisplayOptions = () => {
|
|||
<DropdownMenu
|
||||
icon={ <DisplayIcon /> }
|
||||
/* translators: button label text should, if possible, be under 16 characters. */
|
||||
label={ __( 'Display options', 'woocommerce-admin' ) }
|
||||
label={ __( 'Display options', 'woocommerce' ) }
|
||||
toggleProps={ {
|
||||
className:
|
||||
'woocommerce-layout__activity-panel-tab display-options',
|
||||
|
@ -106,10 +106,7 @@ export const DisplayOptions = () => {
|
|||
{ hasTwoColumnContent ? (
|
||||
<MenuGroup
|
||||
className="woocommerce-layout__homescreen-display-options"
|
||||
label={ __(
|
||||
'Layout',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Layout', 'woocommerce' ) }
|
||||
>
|
||||
<MenuItemsChoice
|
||||
choices={ LAYOUTS }
|
||||
|
|
|
@ -169,7 +169,7 @@ function HighlightTooltip( {
|
|||
onClick={ triggerClose }
|
||||
>
|
||||
{ closeButtonText ||
|
||||
__( 'Close', 'woocommerce-admin' ) }
|
||||
__( 'Close', 'woocommerce' ) }
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
|
|
@ -29,32 +29,32 @@ export const SETUP_TASK_HELP_ITEMS_FILTER =
|
|||
function getHomeItems() {
|
||||
return [
|
||||
{
|
||||
title: __( 'Get Support', 'woocommerce-admin' ),
|
||||
title: __( 'Get Support', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/my-account/create-a-ticket/?utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Home Screen', 'woocommerce-admin' ),
|
||||
title: __( 'Home Screen', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/home-screen/?utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Inbox', 'woocommerce-admin' ),
|
||||
title: __( 'Inbox', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/home-screen/?utm_medium=product#section-2',
|
||||
},
|
||||
{
|
||||
title: __( 'Stats Overview', 'woocommerce-admin' ),
|
||||
title: __( 'Stats Overview', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/home-screen/?utm_medium=product#section-4',
|
||||
},
|
||||
{
|
||||
title: __( 'Store Management', 'woocommerce-admin' ),
|
||||
title: __( 'Store Management', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/home-screen/?utm_medium=product#section-5',
|
||||
},
|
||||
{
|
||||
title: __( 'Store Setup Checklist', 'woocommerce-admin' ),
|
||||
title: __( 'Store Setup Checklist', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-setup-wizard?utm_medium=product#store-setup-checklist',
|
||||
},
|
||||
|
@ -66,7 +66,7 @@ function getAppearanceItems() {
|
|||
{
|
||||
title: __(
|
||||
'Showcase your products and tailor your shopping experience using Blocks',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-blocks/?utm_source=help_panel&utm_medium=product',
|
||||
|
@ -74,16 +74,13 @@ function getAppearanceItems() {
|
|||
{
|
||||
title: __(
|
||||
'Manage Store Notice, Catalog View and Product Images',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-customizer/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __(
|
||||
'How to choose and change a theme',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'How to choose and change a theme', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/choose-change-theme/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
|
@ -95,27 +92,21 @@ function getMarketingItems( props ) {
|
|||
|
||||
return [
|
||||
activePlugins.includes( 'mailpoet' ) && {
|
||||
title: __( 'Get started with Mailpoet', 'woocommerce-admin' ),
|
||||
title: __( 'Get started with Mailpoet', 'woocommerce' ),
|
||||
link: 'https://kb.mailpoet.com/category/114-getting-started',
|
||||
},
|
||||
activePlugins.includes( 'google-listings-and-ads' ) && {
|
||||
title: __( 'Set up Google Listing & Ads', 'woocommerce-admin' ),
|
||||
title: __( 'Set up Google Listing & Ads', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started',
|
||||
},
|
||||
activePlugins.includes( 'mailchimp-for-woocommerce' ) && {
|
||||
title: __(
|
||||
'Connect Mailchimp for WooCommerce',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'Connect Mailchimp for WooCommerce', 'woocommerce' ),
|
||||
link:
|
||||
'https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-woocommerce/',
|
||||
},
|
||||
activePlugins.includes( 'creative-mail-by-constant-contact' ) && {
|
||||
title: __(
|
||||
'Set up Creative Mail for WooCommerce',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'Set up Creative Mail for WooCommerce', 'woocommerce' ),
|
||||
link: 'https://app.creativemail.com/kb/help/WooCommerce',
|
||||
},
|
||||
].filter( Boolean );
|
||||
|
@ -126,71 +117,65 @@ function getPaymentGatewaySuggestions( props ) {
|
|||
|
||||
return [
|
||||
{
|
||||
title: __(
|
||||
'Which Payment Option is Right for Me?',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'Which Payment Option is Right for Me?', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/premium-payment-gateway-extensions/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.woocommerce_payments && {
|
||||
title: __(
|
||||
'WooCommerce Payments Start Up Guide',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'WooCommerce Payments Start Up Guide', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/payments/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.woocommerce_payments && {
|
||||
title: __( 'WooCommerce Payments FAQs', 'woocommerce-admin' ),
|
||||
title: __( 'WooCommerce Payments FAQs', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.stripe && {
|
||||
title: __( 'Stripe Setup and Configuration', 'woocommerce-admin' ),
|
||||
title: __( 'Stripe Setup and Configuration', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/stripe/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions[ 'ppcp-gateway' ] && {
|
||||
title: __(
|
||||
'PayPal Checkout Setup and Configuration',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/2-0/woocommerce-paypal-payments/?utm_medium=product#section-3',
|
||||
},
|
||||
paymentGatewaySuggestions.square_credit_card && {
|
||||
title: __( 'Square - Get started', 'woocommerce-admin' ),
|
||||
title: __( 'Square - Get started', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-square/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.kco && {
|
||||
title: __( 'Klarna - Introduction', 'woocommerce-admin' ),
|
||||
title: __( 'Klarna - Introduction', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/klarna-checkout/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.klarna_payments && {
|
||||
title: __( 'Klarna - Introduction', 'woocommerce-admin' ),
|
||||
title: __( 'Klarna - Introduction', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/klarna-payments/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.payfast && {
|
||||
title: __( 'PayFast Setup and Configuration', 'woocommerce-admin' ),
|
||||
title: __( 'PayFast Setup and Configuration', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/payfast-payment-gateway/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
paymentGatewaySuggestions.eway && {
|
||||
title: __( 'Eway Setup and Configuration', 'woocommerce-admin' ),
|
||||
title: __( 'Eway Setup and Configuration', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/eway/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Direct Bank Transfer (BACS)', 'woocommerce-admin' ),
|
||||
title: __( 'Direct Bank Transfer (BACS)', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/bacs/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Cash on Delivery', 'woocommerce-admin' ),
|
||||
title: __( 'Cash on Delivery', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/cash-on-delivery/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
|
@ -200,31 +185,25 @@ function getPaymentGatewaySuggestions( props ) {
|
|||
function getProductsItems() {
|
||||
return [
|
||||
{
|
||||
title: __( 'Adding and Managing Products', 'woocommerce-admin' ),
|
||||
title: __( 'Adding and Managing Products', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/managing-products/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __(
|
||||
'Import products using the CSV Importer and Exporter',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/product-csv-importer-exporter/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __(
|
||||
'Migrate products using Cart2Cart',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'Migrate products using Cart2Cart', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/products/cart2cart/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __(
|
||||
'Learn more about setting up products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
title: __( 'Learn more about setting up products', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
|
@ -237,24 +216,24 @@ function getShippingItems( { activePlugins, countryCode } ) {
|
|||
! activePlugins.includes( 'woocommerce-services' );
|
||||
return [
|
||||
{
|
||||
title: __( 'Setting up Shipping Zones', 'woocommerce-admin' ),
|
||||
title: __( 'Setting up Shipping Zones', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/setting-up-shipping-zones/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Core Shipping Options', 'woocommerce-admin' ),
|
||||
title: __( 'Core Shipping Options', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
{
|
||||
title: __( 'Product Shipping Classes', 'woocommerce-admin' ),
|
||||
title: __( 'Product Shipping Classes', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/product-shipping-classes/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
showWCS && {
|
||||
title: __(
|
||||
'WooCommerce Shipping setup and configuration',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-shipping-and-tax/?utm_source=help_panel&utm_medium=product#section-3',
|
||||
|
@ -262,7 +241,7 @@ function getShippingItems( { activePlugins, countryCode } ) {
|
|||
{
|
||||
title: __(
|
||||
'Learn more about configuring your shipping settings',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel&utm_medium=product',
|
||||
|
@ -292,14 +271,14 @@ function getTaxItems( props ) {
|
|||
|
||||
return [
|
||||
{
|
||||
title: __( 'Setting up Taxes in WooCommerce', 'woocommerce-admin' ),
|
||||
title: __( 'Setting up Taxes in WooCommerce', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel&utm_medium=product',
|
||||
},
|
||||
showWCS && {
|
||||
title: __(
|
||||
'Automated Tax calculation using WooCommerce Tax',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
link:
|
||||
'https://woocommerce.com/document/woocommerce-services/?utm_source=help_panel&utm_medium=product#section-10',
|
||||
|
@ -345,7 +324,7 @@ function handleOnItemClick( props, event ) {
|
|||
function getListItems( props ) {
|
||||
const itemsByType = getItems( props );
|
||||
const genericDocsLink = {
|
||||
title: __( 'WooCommerce Docs', 'woocommerce-admin' ),
|
||||
title: __( 'WooCommerce Docs', 'woocommerce' ),
|
||||
link:
|
||||
'https://woocommerce.com/documentation/?utm_source=help_panel&utm_medium=product',
|
||||
};
|
||||
|
@ -413,9 +392,7 @@ export const HelpPanel = ( props ) => {
|
|||
|
||||
return (
|
||||
<Fragment>
|
||||
<ActivityHeader
|
||||
title={ __( 'Documentation', 'woocommerce-admin' ) }
|
||||
/>
|
||||
<ActivityHeader title={ __( 'Documentation', 'woocommerce' ) } />
|
||||
<Section>
|
||||
<List
|
||||
items={ listItems }
|
||||
|
|
|
@ -71,7 +71,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
type={ isWCAdminPage ? 'wc-admin' : 'wp-admin' }
|
||||
>
|
||||
<Text as="h3">
|
||||
{ __( 'Things to do next', 'woocommerce-admin' ) }
|
||||
{ __( 'Things to do next', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Text as="p">
|
||||
{ sprintf(
|
||||
|
@ -80,7 +80,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
'You have %d new thing to do',
|
||||
'You have %d new things to do',
|
||||
thingsToDoNextCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
thingsToDoNextCount
|
||||
) }
|
||||
|
@ -98,7 +98,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
type={ isWCAdminPage ? 'wc-admin' : 'wp-admin' }
|
||||
>
|
||||
<Text as="h3">
|
||||
{ __( 'Orders to fulfill', 'woocommerce-admin' ) }
|
||||
{ __( 'Orders to fulfill', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Text>
|
||||
{ sprintf(
|
||||
|
@ -107,7 +107,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
'You have %d order to fulfill',
|
||||
'You have %d orders to fulfill',
|
||||
ordersToProcessCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
ordersToProcessCount
|
||||
) }
|
||||
|
@ -125,7 +125,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
type={ isWCAdminPage ? 'wc-admin' : 'wp-admin' }
|
||||
>
|
||||
<Text as="h3">
|
||||
{ __( 'Reviews to moderate', 'woocommerce-admin' ) }
|
||||
{ __( 'Reviews to moderate', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Text>
|
||||
{ sprintf(
|
||||
|
@ -134,7 +134,7 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
'You have %d review to moderate',
|
||||
'You have %d reviews to moderate',
|
||||
reviewsToModerateCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
reviewsToModerateCount
|
||||
) }
|
||||
|
@ -152,12 +152,12 @@ export const AbbreviatedNotificationsPanel = ( { thingsToDoNextCount } ) => {
|
|||
type={ isWCAdminPage ? 'wc-admin' : 'wp-admin' }
|
||||
>
|
||||
<Text as="h3">
|
||||
{ __( 'Inventory to review', 'woocommerce-admin' ) }
|
||||
{ __( 'Inventory to review', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Text>
|
||||
{ __(
|
||||
'You have inventory to review and update',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Text>
|
||||
</AbbreviatedCard>
|
||||
|
|
|
@ -37,7 +37,7 @@ export const Tab = ( {
|
|||
{ title }{ ' ' }
|
||||
{ unread && (
|
||||
<span className="screen-reader-text">
|
||||
{ __( 'unread activity', 'woocommerce-admin' ) }
|
||||
{ __( 'unread activity', 'woocommerce' ) }
|
||||
</span>
|
||||
) }
|
||||
</Button>
|
||||
|
|
|
@ -80,7 +80,7 @@ export class Leaderboard extends Component {
|
|||
<EmptyTable>
|
||||
{ __(
|
||||
'No data recorded for the selected time period.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</EmptyTable>
|
||||
</CardBody>
|
||||
|
|
|
@ -169,8 +169,8 @@ export class ReportChart extends Component {
|
|||
{ type: 'php' }
|
||||
);
|
||||
const emptyMessage = emptySearchResults
|
||||
? __( 'No data for the current search', 'woocommerce-admin' )
|
||||
: __( 'No data for the selected date range', 'woocommerce-admin' );
|
||||
? __( 'No data for the current search', 'woocommerce' )
|
||||
: __( 'No data for the selected date range', 'woocommerce' );
|
||||
const { formatAmount, getCurrencyConfig } = this.context;
|
||||
return (
|
||||
<Chart
|
||||
|
|
|
@ -15,9 +15,9 @@ import { EmptyContent } from '@woocommerce/components';
|
|||
function ReportError( { className } ) {
|
||||
const title = __(
|
||||
'There was an error getting your stats. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
const actionLabel = __( 'Reload', 'woocommerce-admin' );
|
||||
const actionLabel = __( 'Reload', 'woocommerce' );
|
||||
const actionCallback = () => {
|
||||
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
||||
window.location.reload();
|
||||
|
|
|
@ -104,8 +104,8 @@ export class ReportSummary extends Component {
|
|||
reverseTrend={ isReverseTrend }
|
||||
prevLabel={
|
||||
compare === 'previous_period'
|
||||
? __( 'Previous period:', 'woocommerce-admin' )
|
||||
: __( 'Previous year:', 'woocommerce-admin' )
|
||||
? __( 'Previous period:', 'woocommerce' )
|
||||
: __( 'Previous year:', 'woocommerce' )
|
||||
}
|
||||
prevValue={ prevValue }
|
||||
selected={ isSelected }
|
||||
|
|
|
@ -209,7 +209,7 @@ const ReportTable = ( props ) => {
|
|||
/* translators: %s = type of report */
|
||||
__(
|
||||
'Your %s Report will be emailed to you.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title
|
||||
)
|
||||
|
@ -223,7 +223,7 @@ const ReportTable = ( props ) => {
|
|||
/* translators: %s = type of report */
|
||||
__(
|
||||
'There was a problem exporting your %s Report. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title
|
||||
)
|
||||
|
@ -401,14 +401,14 @@ const ReportTable = ( props ) => {
|
|||
labels.helpText ||
|
||||
__(
|
||||
'Check at least two items below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
}
|
||||
onClick={ onCompare }
|
||||
disabled={ ! downloadable }
|
||||
>
|
||||
{ labels.compareButton ||
|
||||
__( 'Compare', 'woocommerce-admin' ) }
|
||||
__( 'Compare', 'woocommerce' ) }
|
||||
</CompareButton>
|
||||
),
|
||||
searchBy && (
|
||||
|
@ -419,7 +419,7 @@ const ReportTable = ( props ) => {
|
|||
onChange={ onSearchChange }
|
||||
placeholder={
|
||||
labels.placeholder ||
|
||||
__( 'Search by item name', 'woocommerce-admin' )
|
||||
__( 'Search by item name', 'woocommerce' )
|
||||
}
|
||||
selected={ searchedLabels }
|
||||
showClearButton={ true }
|
||||
|
@ -437,7 +437,7 @@ const ReportTable = ( props ) => {
|
|||
<DownloadIcon />
|
||||
<span className="woocommerce-table__download-button__label">
|
||||
{ labels.downloadButton ||
|
||||
__( 'Download', 'woocommerce-admin' ) }
|
||||
__( 'Download', 'woocommerce' ) }
|
||||
</span>
|
||||
</Button>
|
||||
),
|
||||
|
|
|
@ -33,21 +33,21 @@ const { addCesSurveyForAnalytics } = dispatch( CES_STORE_KEY );
|
|||
export const charts = applyFilters( CATEGORY_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'items_sold',
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'items_sold',
|
||||
type: 'number',
|
||||
},
|
||||
{
|
||||
key: 'net_revenue',
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'net_revenue',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'orders_count',
|
||||
type: 'number',
|
||||
|
@ -69,18 +69,18 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Categories match {{select /}} filters',
|
||||
'A sentence describing filters for Categories. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
||||
const filterValues = [
|
||||
{
|
||||
label: __( 'All categories', 'woocommerce-admin' ),
|
||||
label: __( 'All categories', 'woocommerce' ),
|
||||
value: 'all',
|
||||
},
|
||||
{
|
||||
label: __( 'Single category', 'woocommerce-admin' ),
|
||||
label: __( 'Single category', 'woocommerce' ),
|
||||
value: 'select_category',
|
||||
chartMode: 'item-comparison',
|
||||
subFilters: [
|
||||
|
@ -96,16 +96,16 @@ const filterValues = [
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a category',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single Category', 'woocommerce-admin' ),
|
||||
button: __( 'Single Category', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
value: 'compare-categories',
|
||||
chartMode: 'item-comparison',
|
||||
settings: {
|
||||
|
@ -115,14 +115,14 @@ const filterValues = [
|
|||
labels: {
|
||||
helpText: __(
|
||||
'Check at least two categories below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search for categories to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __( 'Compare Categories', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Categories', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
},
|
||||
onClick: addCesSurveyForAnalytics,
|
||||
},
|
||||
|
@ -131,7 +131,7 @@ const filterValues = [
|
|||
|
||||
if ( Object.keys( advancedFilters.filters ).length ) {
|
||||
filterValues.push( {
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ if ( Object.keys( advancedFilters.filters ).length ) {
|
|||
*/
|
||||
export const filters = applyFilters( CATEGORY_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
|
|
|
@ -31,8 +31,8 @@ class CategoriesReport extends Component {
|
|||
? 'item-comparison'
|
||||
: 'time-comparison';
|
||||
const itemsLabel = isSingleCategoryView
|
||||
? __( '%d products', 'woocommerce-admin' )
|
||||
: __( '%d categories', 'woocommerce-admin' );
|
||||
? __( '%d products', 'woocommerce' )
|
||||
: __( '%d categories', 'woocommerce' );
|
||||
|
||||
return {
|
||||
isSingleCategoryView,
|
||||
|
|
|
@ -29,14 +29,14 @@ class CategoriesReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Category', 'woocommerce-admin' ),
|
||||
label: __( 'Category', 'woocommerce' ),
|
||||
key: 'category',
|
||||
required: true,
|
||||
isSortable: true,
|
||||
isLeftAligned: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
key: 'items_sold',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -44,19 +44,19 @@ class CategoriesReportTable extends Component {
|
|||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
key: 'net_revenue',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Products', 'woocommerce-admin' ),
|
||||
label: __( 'Products', 'woocommerce' ),
|
||||
key: 'products_count',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
|
@ -146,7 +146,7 @@ class CategoriesReportTable extends Component {
|
|||
'Category',
|
||||
'Categories',
|
||||
totalResults,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', totalResults ),
|
||||
},
|
||||
|
@ -155,21 +155,16 @@ class CategoriesReportTable extends Component {
|
|||
'Item sold',
|
||||
'Items sold',
|
||||
itemsSold,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', itemsSold ),
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
value: formatAmount( netRevenue ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'Order',
|
||||
'Orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Order', 'Orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
];
|
||||
|
@ -181,9 +176,9 @@ class CategoriesReportTable extends Component {
|
|||
const labels = {
|
||||
helpText: __(
|
||||
'Check at least two categories below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __( 'Search by category name', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search by category name', 'woocommerce' ),
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -208,7 +203,7 @@ class CategoriesReportTable extends Component {
|
|||
order: query.order || 'desc',
|
||||
extended_info: true,
|
||||
} }
|
||||
title={ __( 'Categories', 'woocommerce-admin' ) }
|
||||
title={ __( 'Categories', 'woocommerce' ) }
|
||||
columnPrefsKey="categories_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -31,14 +31,14 @@ const { addCesSurveyForAnalytics } = dispatch( CES_STORE_KEY );
|
|||
export const charts = applyFilters( COUPON_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Discounted orders', 'woocommerce-admin' ),
|
||||
label: __( 'Discounted orders', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'orders_count',
|
||||
type: 'number',
|
||||
},
|
||||
{
|
||||
key: 'amount',
|
||||
label: __( 'Amount', 'woocommerce-admin' ),
|
||||
label: __( 'Amount', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'amount',
|
||||
type: 'currency',
|
||||
|
@ -60,15 +60,15 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Coupons match {{select /}} filters',
|
||||
'A sentence describing filters for Coupons. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
||||
const filterValues = [
|
||||
{ label: __( 'All coupons', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All coupons', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Single coupon', 'woocommerce-admin' ),
|
||||
label: __( 'Single coupon', 'woocommerce' ),
|
||||
value: 'select_coupon',
|
||||
chartMode: 'item-comparison',
|
||||
subFilters: [
|
||||
|
@ -84,27 +84,27 @@ const filterValues = [
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a coupon',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single Coupon', 'woocommerce-admin' ),
|
||||
button: __( 'Single Coupon', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
value: 'compare-coupons',
|
||||
settings: {
|
||||
type: 'coupons',
|
||||
param: 'coupons',
|
||||
getLabels: getCouponLabels,
|
||||
labels: {
|
||||
title: __( 'Compare Coupon Codes', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Coupon Codes', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
helpText: __(
|
||||
'Check at least two coupon codes below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
onClick: addCesSurveyForAnalytics,
|
||||
|
@ -114,7 +114,7 @@ const filterValues = [
|
|||
|
||||
if ( Object.keys( advancedFilters.filters ).length ) {
|
||||
filterValues.push( {
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ if ( Object.keys( advancedFilters.filters ).length ) {
|
|||
*/
|
||||
export const filters = applyFilters( COUPON_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
|
|
|
@ -24,7 +24,7 @@ class CouponsReport extends Component {
|
|||
query.coupons.split( ',' ).length > 1;
|
||||
|
||||
const mode = isCompareView ? 'item-comparison' : 'time-comparison';
|
||||
const itemsLabel = __( '%d coupons', 'woocommerce-admin' );
|
||||
const itemsLabel = __( '%d coupons', 'woocommerce' );
|
||||
|
||||
return {
|
||||
itemsLabel,
|
||||
|
|
|
@ -28,14 +28,14 @@ class CouponsReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Coupon code', 'woocommerce-admin' ),
|
||||
label: __( 'Coupon code', 'woocommerce' ),
|
||||
key: 'code',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -43,21 +43,21 @@ class CouponsReportTable extends Component {
|
|||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Amount discounted', 'woocommerce-admin' ),
|
||||
label: __( 'Amount discounted', 'woocommerce' ),
|
||||
key: 'amount',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Created', 'woocommerce-admin' ),
|
||||
label: __( 'Created', 'woocommerce' ),
|
||||
key: 'created',
|
||||
},
|
||||
{
|
||||
label: __( 'Expires', 'woocommerce-admin' ),
|
||||
label: __( 'Expires', 'woocommerce' ),
|
||||
key: 'expires',
|
||||
},
|
||||
{
|
||||
label: __( 'Type', 'woocommerce-admin' ),
|
||||
label: __( 'Type', 'woocommerce' ),
|
||||
key: 'type',
|
||||
},
|
||||
];
|
||||
|
@ -147,7 +147,7 @@ class CouponsReportTable extends Component {
|
|||
visibleFormat={ dateFormat }
|
||||
/>
|
||||
) : (
|
||||
__( 'N/A', 'woocommerce-admin' )
|
||||
__( 'N/A', 'woocommerce' )
|
||||
),
|
||||
value: dateCreated,
|
||||
},
|
||||
|
@ -158,7 +158,7 @@ class CouponsReportTable extends Component {
|
|||
visibleFormat={ dateFormat }
|
||||
/>
|
||||
) : (
|
||||
__( 'N/A', 'woocommerce-admin' )
|
||||
__( 'N/A', 'woocommerce' )
|
||||
),
|
||||
value: dateExpires,
|
||||
},
|
||||
|
@ -180,25 +180,15 @@ class CouponsReportTable extends Component {
|
|||
const currency = getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n(
|
||||
'Coupon',
|
||||
'Coupons',
|
||||
couponsCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Coupon', 'Coupons', couponsCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', couponsCount ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'Order',
|
||||
'Orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Order', 'Orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
{
|
||||
label: __( 'Amount discounted', 'woocommerce-admin' ),
|
||||
label: __( 'Amount discounted', 'woocommerce' ),
|
||||
value: formatAmount( amount ),
|
||||
},
|
||||
];
|
||||
|
@ -206,11 +196,11 @@ class CouponsReportTable extends Component {
|
|||
|
||||
getCouponType( discountType ) {
|
||||
const couponTypes = {
|
||||
percent: __( 'Percentage', 'woocommerce-admin' ),
|
||||
fixed_cart: __( 'Fixed cart', 'woocommerce-admin' ),
|
||||
fixed_product: __( 'Fixed product', 'woocommerce-admin' ),
|
||||
percent: __( 'Percentage', 'woocommerce' ),
|
||||
fixed_cart: __( 'Fixed cart', 'woocommerce' ),
|
||||
fixed_product: __( 'Fixed product', 'woocommerce' ),
|
||||
};
|
||||
return couponTypes[ discountType ] || __( 'N/A', 'woocommerce-admin' );
|
||||
return couponTypes[ discountType ] || __( 'N/A', 'woocommerce' );
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -233,7 +223,7 @@ class CouponsReportTable extends Component {
|
|||
order: query.order || 'desc',
|
||||
extended_info: true,
|
||||
} }
|
||||
title={ __( 'Coupons', 'woocommerce-admin' ) }
|
||||
title={ __( 'Coupons', 'woocommerce' ) }
|
||||
columnPrefsKey="coupons_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -32,14 +32,14 @@ const CUSTOMERS_REPORT_ADVANCED_FILTERS_FILTER =
|
|||
*/
|
||||
export const filters = applyFilters( CUSTOMERS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{ label: __( 'All Customers', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All Customers', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Single Customer', 'woocommerce-admin' ),
|
||||
label: __( 'Single Customer', 'woocommerce' ),
|
||||
value: 'select_customer',
|
||||
chartMode: 'item-comparison',
|
||||
subFilters: [
|
||||
|
@ -55,19 +55,16 @@ export const filters = applyFilters( CUSTOMERS_REPORT_FILTERS_FILTER, [
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a customer',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
button: __(
|
||||
'Single Customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single Customer', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
},
|
||||
],
|
||||
|
@ -89,27 +86,24 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Customers match {{select /}} filters',
|
||||
'A sentence describing filters for Customers. See screen shot for context: https://cloudup.com/cCsm3GeXJbE',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filters: {
|
||||
name: {
|
||||
labels: {
|
||||
add: __( 'Name', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove customer name filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Name', 'woocommerce' ),
|
||||
placeholder: __( 'Search', 'woocommerce' ),
|
||||
remove: __( 'Remove customer name filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a customer name filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Name{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select customer name', 'woocommerce-admin' ),
|
||||
filter: __( 'Select customer name', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
@ -118,7 +112,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Includes',
|
||||
'customer names',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -127,7 +121,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Excludes',
|
||||
'customer names',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -145,44 +139,33 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
country: {
|
||||
labels: {
|
||||
add: __( 'Country / Region', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search', 'woocommerce-admin' ),
|
||||
add: __( 'Country / Region', 'woocommerce' ),
|
||||
placeholder: __( 'Search', 'woocommerce' ),
|
||||
remove: __(
|
||||
'Remove country / region filter',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
rule: __(
|
||||
'Select a country / region filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Country / Region{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
filter: __(
|
||||
'Select country / region',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select country / region', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to countries including a given country or countries. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'countries',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'countries', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to countries excluding a given country or countries. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'countries',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'countries', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -207,28 +190,25 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
username: {
|
||||
labels: {
|
||||
add: __( 'Username', 'woocommerce-admin' ),
|
||||
add: __( 'Username', 'woocommerce' ),
|
||||
placeholder: __(
|
||||
'Search customer username',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
remove: __(
|
||||
'Remove customer username filter',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
rule: __(
|
||||
'Select a customer username filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a customer username filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Username{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
filter: __(
|
||||
'Select customer username',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select customer username', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
@ -237,7 +217,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Includes',
|
||||
'customer usernames',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -246,7 +226,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Excludes',
|
||||
'customer usernames',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -258,25 +238,19 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
email: {
|
||||
labels: {
|
||||
add: __( 'Email', 'woocommerce-admin' ),
|
||||
placeholder: __(
|
||||
'Search customer email',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
remove: __(
|
||||
'Remove customer email filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Email', 'woocommerce' ),
|
||||
placeholder: __( 'Search customer email', 'woocommerce' ),
|
||||
remove: __( 'Remove customer email filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a customer email filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a customer email filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Email{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select customer email', 'woocommerce-admin' ),
|
||||
filter: __( 'Select customer email', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
@ -285,7 +259,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Includes',
|
||||
'customer emails',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -294,7 +268,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Excludes',
|
||||
'customer emails',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -312,15 +286,15 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
orders_count: {
|
||||
labels: {
|
||||
add: __( 'No. of Orders', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove order filter', 'woocommerce-admin' ),
|
||||
add: __( 'No. of Orders', 'woocommerce' ),
|
||||
remove: __( 'Remove order filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select an order count filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __(
|
||||
'{{title}}No. of Orders{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
rules: [
|
||||
|
@ -330,7 +304,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Less Than',
|
||||
'number of orders',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -339,7 +313,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'More Than',
|
||||
'number of orders',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -348,7 +322,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Between',
|
||||
'number of orders',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -358,18 +332,15 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
total_spend: {
|
||||
labels: {
|
||||
add: __( 'Total Spend', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove total spend filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Total Spend', 'woocommerce' ),
|
||||
remove: __( 'Remove total spend filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a total spend filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __(
|
||||
'{{title}}Total Spend{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
rules: [
|
||||
|
@ -379,7 +350,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Less Than',
|
||||
'total spend by customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -388,7 +359,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'More Than',
|
||||
'total spend by customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -397,7 +368,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Between',
|
||||
'total spend by customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -407,18 +378,18 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
avg_order_value: {
|
||||
labels: {
|
||||
add: __( 'AOV', 'woocommerce-admin' ),
|
||||
add: __( 'AOV', 'woocommerce' ),
|
||||
remove: __(
|
||||
'Remove average order value filter',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
rule: __(
|
||||
'Select an average order value filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __(
|
||||
'{{title}}AOV{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
rules: [
|
||||
|
@ -428,7 +399,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Less Than',
|
||||
'average order value of customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -438,7 +409,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'More Than',
|
||||
'average order value of customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -447,7 +418,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Between',
|
||||
'average order value of customer',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -457,37 +428,34 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
registered: {
|
||||
labels: {
|
||||
add: __( 'Registered', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove registered filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Registered', 'woocommerce' ),
|
||||
remove: __( 'Remove registered filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a registered filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Registered{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select registered date', 'woocommerce-admin' ),
|
||||
filter: __( 'Select registered date', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'before',
|
||||
/* translators: Sentence fragment, logical, "Before" refers to customers registered before a given date. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'Before', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'Before', 'date', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'after',
|
||||
/* translators: Sentence fragment, logical, "after" refers to customers registered after a given date. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'After', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'After', 'date', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'between',
|
||||
/* translators: Sentence fragment, logical, "Between" refers to average order value of a customer, between two given amounts. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'Between', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'Between', 'date', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -496,37 +464,34 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
last_active: {
|
||||
labels: {
|
||||
add: __( 'Last active', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove last active filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Last active', 'woocommerce' ),
|
||||
remove: __( 'Remove last active filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a last active filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
title: __(
|
||||
'{{title}}Last active{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select registered date', 'woocommerce-admin' ),
|
||||
filter: __( 'Select registered date', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'before',
|
||||
/* translators: Sentence fragment, logical, "Before" refers to customers registered before a given date. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'Before', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'Before', 'date', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'after',
|
||||
/* translators: Sentence fragment, logical, "after" refers to customers registered after a given date. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'After', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'After', 'date', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'between',
|
||||
/* translators: Sentence fragment, logical, "Between" refers to average order value of a customer, between two given amounts. Screenshot for context: https://cloudup.com/cCsm3GeXJbE */
|
||||
label: _x( 'Between', 'date', 'woocommerce-admin' ),
|
||||
label: _x( 'Between', 'date', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
|
|
@ -38,72 +38,69 @@ function CustomersReportTable( {
|
|||
const getHeadersContent = () => {
|
||||
return [
|
||||
{
|
||||
label: __( 'Name', 'woocommerce-admin' ),
|
||||
label: __( 'Name', 'woocommerce' ),
|
||||
key: 'name',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Username', 'woocommerce-admin' ),
|
||||
label: __( 'Username', 'woocommerce' ),
|
||||
key: 'username',
|
||||
hiddenByDefault: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Last active', 'woocommerce-admin' ),
|
||||
label: __( 'Last active', 'woocommerce' ),
|
||||
key: 'date_last_active',
|
||||
defaultSort: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Date registered', 'woocommerce-admin' ),
|
||||
label: __( 'Date registered', 'woocommerce' ),
|
||||
key: 'date_registered',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Email', 'woocommerce-admin' ),
|
||||
label: __( 'Email', 'woocommerce' ),
|
||||
key: 'email',
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Total spend', 'woocommerce-admin' ),
|
||||
label: __( 'Total spend', 'woocommerce' ),
|
||||
key: 'total_spend',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'AOV', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __(
|
||||
'Average order value',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: __( 'AOV', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Average order value', 'woocommerce' ),
|
||||
key: 'avg_order_value',
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Country / Region', 'woocommerce-admin' ),
|
||||
label: __( 'Country / Region', 'woocommerce' ),
|
||||
key: 'country',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'City', 'woocommerce-admin' ),
|
||||
label: __( 'City', 'woocommerce' ),
|
||||
key: 'city',
|
||||
hiddenByDefault: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Region', 'woocommerce-admin' ),
|
||||
label: __( 'Region', 'woocommerce' ),
|
||||
key: 'state',
|
||||
hiddenByDefault: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Postal code', 'woocommerce-admin' ),
|
||||
label: __( 'Postal code', 'woocommerce' ),
|
||||
key: 'postcode',
|
||||
hiddenByDefault: true,
|
||||
isSortable: true,
|
||||
|
@ -250,7 +247,7 @@ function CustomersReportTable( {
|
|||
'customer',
|
||||
'customers',
|
||||
customersCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', customersCount ),
|
||||
},
|
||||
|
@ -259,16 +256,16 @@ function CustomersReportTable( {
|
|||
'Average order',
|
||||
'Average orders',
|
||||
avgOrdersCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', avgOrdersCount ),
|
||||
},
|
||||
{
|
||||
label: __( 'Average lifetime spend', 'woocommerce-admin' ),
|
||||
label: __( 'Average lifetime spend', 'woocommerce' ),
|
||||
value: formatAmount( avgTotalSpend ),
|
||||
},
|
||||
{
|
||||
label: __( 'Average order value', 'woocommerce-admin' ),
|
||||
label: __( 'Average order value', 'woocommerce' ),
|
||||
value: formatAmount( avgAvgOrderValue ),
|
||||
},
|
||||
];
|
||||
|
@ -290,13 +287,10 @@ function CustomersReportTable( {
|
|||
itemIdField="id"
|
||||
query={ query }
|
||||
labels={ {
|
||||
placeholder: __(
|
||||
'Search by customer name',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
placeholder: __( 'Search by customer name', 'woocommerce' ),
|
||||
} }
|
||||
searchBy="customers"
|
||||
title={ __( 'Customers', 'woocommerce-admin' ) }
|
||||
title={ __( 'Customers', 'woocommerce' ) }
|
||||
columnPrefsKey="customers_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -32,7 +32,7 @@ const DOWLOADS_REPORT_ADVANCED_FILTERS_FILTER =
|
|||
export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'download_count',
|
||||
label: __( 'Downloads', 'woocommerce-admin' ),
|
||||
label: __( 'Downloads', 'woocommerce' ),
|
||||
type: 'number',
|
||||
},
|
||||
] );
|
||||
|
@ -49,14 +49,14 @@ export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
|
|||
*/
|
||||
export const filters = applyFilters( DOWLOADS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{ label: __( 'All downloads', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All downloads', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
},
|
||||
],
|
||||
|
@ -79,43 +79,32 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Downloads match {{select /}} filters',
|
||||
'A sentence describing filters for Downloads. See screen shot for context: https://cloudup.com/ccxhyH2mEDg',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filters: {
|
||||
product: {
|
||||
labels: {
|
||||
add: __( 'Product', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove product filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a product filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Product', 'woocommerce' ),
|
||||
placeholder: __( 'Search', 'woocommerce' ),
|
||||
remove: __( 'Remove product filter', 'woocommerce' ),
|
||||
rule: __( 'Select a product filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
title: __(
|
||||
'{{title}}Product{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select product', 'woocommerce-admin' ),
|
||||
filter: __( 'Select product', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to products including a given product(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'products', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to products excluding a products(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'products', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -126,28 +115,25 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
customer: {
|
||||
labels: {
|
||||
add: __( 'Username', 'woocommerce-admin' ),
|
||||
add: __( 'Username', 'woocommerce' ),
|
||||
placeholder: __(
|
||||
'Search customer username',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
remove: __(
|
||||
'Remove customer username filter',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
rule: __(
|
||||
'Select a customer username filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a customer username filter. See screen shot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
title: __(
|
||||
'{{title}}Username{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
filter: __(
|
||||
'Select customer username',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select customer username', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
@ -156,7 +142,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Includes',
|
||||
'customer usernames',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
|
@ -165,7 +151,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Excludes',
|
||||
'customer usernames',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -177,44 +163,30 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
order: {
|
||||
labels: {
|
||||
add: __( 'Order #', 'woocommerce-admin' ),
|
||||
placeholder: __(
|
||||
'Search order number',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
remove: __(
|
||||
'Remove order number filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Order #', 'woocommerce' ),
|
||||
placeholder: __( 'Search order number', 'woocommerce' ),
|
||||
remove: __( 'Remove order number filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a order number filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a order number filter. See screen shot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
title: __(
|
||||
'{{title}}Order #{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select order number', 'woocommerce-admin' ),
|
||||
filter: __( 'Select order number', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to order numbers including a given order(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'order numbers',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'order numbers', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to order numbers excluding a given order(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'order numbers',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'order numbers', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -231,41 +203,30 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
ip_address: {
|
||||
labels: {
|
||||
add: __( 'IP Address', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search IP address', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove IP address filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'IP Address', 'woocommerce' ),
|
||||
placeholder: __( 'Search IP address', 'woocommerce' ),
|
||||
remove: __( 'Remove IP address filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select an IP address filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a order number filter. See screen shot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
title: __(
|
||||
'{{title}}IP Address{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select IP address', 'woocommerce-admin' ),
|
||||
filter: __( 'Select IP address', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to IP addresses including a given address(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'IP addresses',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'IP addresses', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to IP addresses excluding a given address(s). Screenshot for context: https://cloudup.com/ccxhyH2mEDg */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'IP addresses',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'IP addresses', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
|
|
@ -32,7 +32,7 @@ class DownloadsReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Date', 'woocommerce-admin' ),
|
||||
label: __( 'Date', 'woocommerce' ),
|
||||
key: 'date',
|
||||
defaultSort: true,
|
||||
required: true,
|
||||
|
@ -40,26 +40,26 @@ class DownloadsReportTable extends Component {
|
|||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Product title', 'woocommerce-admin' ),
|
||||
label: __( 'Product title', 'woocommerce' ),
|
||||
key: 'product',
|
||||
isSortable: true,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: __( 'File name', 'woocommerce-admin' ),
|
||||
label: __( 'File name', 'woocommerce' ),
|
||||
key: 'file_name',
|
||||
},
|
||||
{
|
||||
label: __( 'Order #', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Order Number', 'woocommerce-admin' ),
|
||||
label: __( 'Order #', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Order Number', 'woocommerce' ),
|
||||
key: 'order_number',
|
||||
},
|
||||
{
|
||||
label: __( 'Username', 'woocommerce-admin' ),
|
||||
label: __( 'Username', 'woocommerce' ),
|
||||
key: 'user_id',
|
||||
},
|
||||
{
|
||||
label: __( 'IP', 'woocommerce-admin' ),
|
||||
label: __( 'IP', 'woocommerce' ),
|
||||
key: 'ip_address',
|
||||
},
|
||||
];
|
||||
|
@ -94,8 +94,8 @@ class DownloadsReportTable extends Component {
|
|||
|
||||
// Handle deleted products.
|
||||
if ( errorCode === 'woocommerce_rest_product_invalid_id' ) {
|
||||
productDisplay = __( '(Deleted)', 'woocommerce-admin' );
|
||||
productValue = __( '(Deleted)', 'woocommerce-admin' );
|
||||
productDisplay = __( '(Deleted)', 'woocommerce' );
|
||||
productValue = __( '(Deleted)', 'woocommerce' );
|
||||
} else {
|
||||
const productURL = getNewPath(
|
||||
persistedQuery,
|
||||
|
@ -169,7 +169,7 @@ class DownloadsReportTable extends Component {
|
|||
|
||||
return [
|
||||
{
|
||||
label: _n( 'day', 'days', days, 'woocommerce-admin' ),
|
||||
label: _n( 'day', 'days', days, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', days ),
|
||||
},
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ class DownloadsReportTable extends Component {
|
|||
'Download',
|
||||
'Downloads',
|
||||
downloadCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', downloadCount ),
|
||||
},
|
||||
|
@ -198,7 +198,7 @@ class DownloadsReportTable extends Component {
|
|||
tableQuery={ {
|
||||
_embed: true,
|
||||
} }
|
||||
title={ __( 'Downloads', 'woocommerce-admin' ) }
|
||||
title={ __( 'Downloads', 'woocommerce' ) }
|
||||
columnPrefsKey="downloads_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -51,7 +51,7 @@ export default () => {
|
|||
const reports = [
|
||||
{
|
||||
report: 'revenue',
|
||||
title: __( 'Revenue', 'woocommerce-admin' ),
|
||||
title: __( 'Revenue', 'woocommerce' ),
|
||||
component: RevenueReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-revenue',
|
||||
|
@ -59,7 +59,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'products',
|
||||
title: __( 'Products', 'woocommerce-admin' ),
|
||||
title: __( 'Products', 'woocommerce' ),
|
||||
component: ProductsReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-products',
|
||||
|
@ -67,7 +67,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'variations',
|
||||
title: __( 'Variations', 'woocommerce-admin' ),
|
||||
title: __( 'Variations', 'woocommerce' ),
|
||||
component: VariationsReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-variations',
|
||||
|
@ -75,7 +75,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'orders',
|
||||
title: __( 'Orders', 'woocommerce-admin' ),
|
||||
title: __( 'Orders', 'woocommerce' ),
|
||||
component: OrdersReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-orders',
|
||||
|
@ -83,7 +83,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'categories',
|
||||
title: __( 'Categories', 'woocommerce-admin' ),
|
||||
title: __( 'Categories', 'woocommerce' ),
|
||||
component: CategoriesReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-categories',
|
||||
|
@ -91,7 +91,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'coupons',
|
||||
title: __( 'Coupons', 'woocommerce-admin' ),
|
||||
title: __( 'Coupons', 'woocommerce' ),
|
||||
component: CouponsReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-coupons',
|
||||
|
@ -99,7 +99,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
report: 'taxes',
|
||||
title: __( 'Taxes', 'woocommerce-admin' ),
|
||||
title: __( 'Taxes', 'woocommerce' ),
|
||||
component: TaxesReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-taxes',
|
||||
|
@ -108,7 +108,7 @@ export default () => {
|
|||
manageStock === 'yes'
|
||||
? {
|
||||
report: 'stock',
|
||||
title: __( 'Stock', 'woocommerce-admin' ),
|
||||
title: __( 'Stock', 'woocommerce' ),
|
||||
component: StockReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-stock',
|
||||
|
@ -117,12 +117,12 @@ export default () => {
|
|||
: null,
|
||||
{
|
||||
report: 'customers',
|
||||
title: __( 'Customers', 'woocommerce-admin' ),
|
||||
title: __( 'Customers', 'woocommerce' ),
|
||||
component: CustomersReport,
|
||||
},
|
||||
{
|
||||
report: 'downloads',
|
||||
title: __( 'Downloads', 'woocommerce-admin' ),
|
||||
title: __( 'Downloads', 'woocommerce' ),
|
||||
component: DownloadsReport,
|
||||
navArgs: {
|
||||
id: 'woocommerce-analytics-downloads',
|
||||
|
|
|
@ -33,24 +33,24 @@ const ORDERS_REPORT_ADVANCED_FILTERS_FILTER =
|
|||
export const charts = applyFilters( ORDERS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
type: 'number',
|
||||
},
|
||||
{
|
||||
key: 'net_revenue',
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'net_total',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'avg_order_value',
|
||||
label: __( 'Average order value', 'woocommerce-admin' ),
|
||||
label: __( 'Average order value', 'woocommerce' ),
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'avg_items_per_order',
|
||||
label: __( 'Average items per order', 'woocommerce-admin' ),
|
||||
label: __( 'Average items per order', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'num_items_sold',
|
||||
type: 'average',
|
||||
|
@ -69,14 +69,14 @@ export const charts = applyFilters( ORDERS_REPORT_CHARTS_FILTER, [
|
|||
*/
|
||||
export const filters = applyFilters( ORDERS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{ label: __( 'All orders', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All orders', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
},
|
||||
],
|
||||
|
@ -99,41 +99,34 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Orders match {{select /}} filters',
|
||||
'A sentence describing filters for Orders. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filters: {
|
||||
status: {
|
||||
labels: {
|
||||
add: __( 'Order Status', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove order status filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Order Status', 'woocommerce' ),
|
||||
remove: __( 'Remove order status filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select an order status filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing an Order Status filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Order Status{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select an order status', 'woocommerce-admin' ),
|
||||
filter: __( 'Select an order status', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'is',
|
||||
/* translators: Sentence fragment, logical, "Is" refers to searching for orders matching a chosen order status. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x( 'Is', 'order status', 'woocommerce-admin' ),
|
||||
label: _x( 'Is', 'order status', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'is_not',
|
||||
/* translators: Sentence fragment, logical, "Is Not" refers to searching for orders that don\'t match a chosen order status. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Is Not',
|
||||
'order status',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Is Not', 'order status', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -146,38 +139,27 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
product: {
|
||||
labels: {
|
||||
add: __( 'Products', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search products', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove products filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a product filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Products', 'woocommerce' ),
|
||||
placeholder: __( 'Search products', 'woocommerce' ),
|
||||
remove: __( 'Remove products filter', 'woocommerce' ),
|
||||
rule: __( 'Select a product filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Product{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select products', 'woocommerce-admin' ),
|
||||
filter: __( 'Select products', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to orders including a given product(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'products', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to orders excluding a given product(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'products', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -188,41 +170,30 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
variation: {
|
||||
labels: {
|
||||
add: __( 'Variations', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search variations', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove variations filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Variations', 'woocommerce' ),
|
||||
placeholder: __( 'Search variations', 'woocommerce' ),
|
||||
remove: __( 'Remove variations filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a variation filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Variation filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Variation{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select variation', 'woocommerce-admin' ),
|
||||
filter: __( 'Select variation', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to orders including a given variation(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'variations',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'variations', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to orders excluding a given variation(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'variations',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'variations', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -233,38 +204,27 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
coupon: {
|
||||
labels: {
|
||||
add: __( 'Coupon Codes', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search coupons', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove coupon filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a coupon filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Coupon Codes', 'woocommerce' ),
|
||||
placeholder: __( 'Search coupons', 'woocommerce' ),
|
||||
remove: __( 'Remove coupon filter', 'woocommerce' ),
|
||||
rule: __( 'Select a coupon filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Coupon filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Coupon code{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select coupon codes', 'woocommerce-admin' ),
|
||||
filter: __( 'Select coupon codes', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to orders including a given coupon code(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'coupon code',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'coupon code', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to orders excluding a given coupon code(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'coupon code',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'coupon code', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -275,29 +235,26 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
customer_type: {
|
||||
labels: {
|
||||
add: __( 'Customer type', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove customer filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a customer filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Customer type', 'woocommerce' ),
|
||||
remove: __( 'Remove customer filter', 'woocommerce' ),
|
||||
rule: __( 'Select a customer filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Customer filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Customer is{{/title}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select a customer type', 'woocommerce-admin' ),
|
||||
filter: __( 'Select a customer type', 'woocommerce' ),
|
||||
},
|
||||
input: {
|
||||
component: 'SelectControl',
|
||||
options: [
|
||||
{
|
||||
value: 'new',
|
||||
label: __( 'New', 'woocommerce-admin' ),
|
||||
label: __( 'New', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'returning',
|
||||
label: __( 'Returning', 'woocommerce-admin' ),
|
||||
label: __( 'Returning', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
defaultOption: 'new',
|
||||
|
@ -305,39 +262,33 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
refunds: {
|
||||
labels: {
|
||||
add: __( 'Refunds', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove refunds filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a refund filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Refunds', 'woocommerce' ),
|
||||
remove: __( 'Remove refunds filter', 'woocommerce' ),
|
||||
rule: __( 'Select a refund filter match', 'woocommerce' ),
|
||||
title: __(
|
||||
'{{title}}Refunds{{/title}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select a refund type', 'woocommerce-admin' ),
|
||||
filter: __( 'Select a refund type', 'woocommerce' ),
|
||||
},
|
||||
input: {
|
||||
component: 'SelectControl',
|
||||
options: [
|
||||
{
|
||||
value: 'all',
|
||||
label: __( 'All', 'woocommerce-admin' ),
|
||||
label: __( 'All', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'partial',
|
||||
label: __(
|
||||
'Partially refunded',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: __( 'Partially refunded', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'full',
|
||||
label: __( 'Fully refunded', 'woocommerce-admin' ),
|
||||
label: __( 'Fully refunded', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'none',
|
||||
label: __( 'None', 'woocommerce-admin' ),
|
||||
label: __( 'None', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
defaultOption: 'all',
|
||||
|
@ -345,38 +296,27 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
tax_rate: {
|
||||
labels: {
|
||||
add: __( 'Tax Rates', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search tax rates', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove tax rate filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a tax rate filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Tax Rates', 'woocommerce' ),
|
||||
placeholder: __( 'Search tax rates', 'woocommerce' ),
|
||||
remove: __( 'Remove tax rate filter', 'woocommerce' ),
|
||||
rule: __( 'Select a tax rate filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a tax rate filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Tax Rate{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select tax rates', 'woocommerce-admin' ),
|
||||
filter: __( 'Select tax rates', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to orders including a given tax rate(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'tax rate',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'tax rate', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to orders excluding a given tax rate(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'tax rate',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'tax rate', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -388,32 +328,25 @@ export const advancedFilters = applyFilters(
|
|||
attribute: {
|
||||
allowMultiple: true,
|
||||
labels: {
|
||||
add: __( 'Attribute', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search attributes', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove attribute filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Attribute', 'woocommerce' ),
|
||||
placeholder: __( 'Search attributes', 'woocommerce' ),
|
||||
remove: __( 'Remove attribute filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a product attribute filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Attribute{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select attributes', 'woocommerce-admin' ),
|
||||
filter: __( 'Select attributes', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'is',
|
||||
/* translators: Sentence fragment, logical, "Is" refers to searching for products matching a chosen attribute. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Is',
|
||||
'product attribute',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Is', 'product attribute', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'is_not',
|
||||
|
@ -421,7 +354,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Is Not',
|
||||
'product attribute',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
|
|
@ -31,7 +31,7 @@ class OrdersReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Date', 'woocommerce-admin' ),
|
||||
label: __( 'Date', 'woocommerce' ),
|
||||
key: 'date',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -39,53 +39,53 @@ class OrdersReportTable extends Component {
|
|||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Order #', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Order Number', 'woocommerce-admin' ),
|
||||
label: __( 'Order #', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Order Number', 'woocommerce' ),
|
||||
key: 'order_number',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Status', 'woocommerce-admin' ),
|
||||
label: __( 'Status', 'woocommerce' ),
|
||||
key: 'status',
|
||||
required: false,
|
||||
isSortable: false,
|
||||
},
|
||||
{
|
||||
label: __( 'Customer', 'woocommerce-admin' ),
|
||||
label: __( 'Customer', 'woocommerce' ),
|
||||
key: 'customer_id',
|
||||
required: false,
|
||||
isSortable: false,
|
||||
},
|
||||
{
|
||||
label: __( 'Customer type', 'woocommerce-admin' ),
|
||||
label: __( 'Customer type', 'woocommerce' ),
|
||||
key: 'customer_type',
|
||||
required: false,
|
||||
isSortable: false,
|
||||
},
|
||||
{
|
||||
label: __( 'Product(s)', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Products', 'woocommerce-admin' ),
|
||||
label: __( 'Product(s)', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Products', 'woocommerce' ),
|
||||
key: 'products',
|
||||
required: false,
|
||||
isSortable: false,
|
||||
},
|
||||
{
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
key: 'num_items_sold',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Coupon(s)', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Coupons', 'woocommerce-admin' ),
|
||||
label: __( 'Coupon(s)', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Coupons', 'woocommerce' ),
|
||||
key: 'coupons',
|
||||
required: false,
|
||||
isSortable: false,
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce' ),
|
||||
key: 'net_total',
|
||||
required: true,
|
||||
isSortable: true,
|
||||
|
@ -202,7 +202,7 @@ class OrdersReportTable extends Component {
|
|||
: [],
|
||||
formattedProducts.map( ( product ) => ( {
|
||||
label: sprintf(
|
||||
__( '%s× %s', 'woocommerce-admin' ),
|
||||
__( '%s× %s', 'woocommerce' ),
|
||||
product.quantity,
|
||||
product.label
|
||||
),
|
||||
|
@ -212,7 +212,7 @@ class OrdersReportTable extends Component {
|
|||
value: formattedProducts
|
||||
.map( ( { quantity, label } ) =>
|
||||
sprintf(
|
||||
__( '%s× %s', 'woocommerce-admin' ),
|
||||
__( '%s× %s', 'woocommerce' ),
|
||||
quantity,
|
||||
label
|
||||
)
|
||||
|
@ -259,12 +259,7 @@ class OrdersReportTable extends Component {
|
|||
const currency = getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n(
|
||||
'Order',
|
||||
'Orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Order', 'Orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
{
|
||||
|
@ -272,17 +267,12 @@ class OrdersReportTable extends Component {
|
|||
' Customer',
|
||||
' Customers',
|
||||
totalCustomers,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', totalCustomers ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'Product',
|
||||
'Products',
|
||||
products,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Product', 'Products', products, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', products ),
|
||||
},
|
||||
{
|
||||
|
@ -290,21 +280,16 @@ class OrdersReportTable extends Component {
|
|||
'Item sold',
|
||||
'Items sold',
|
||||
numItemsSold,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', numItemsSold ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'Coupon',
|
||||
'Coupons',
|
||||
couponsCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Coupon', 'Coupons', couponsCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', couponsCount ),
|
||||
},
|
||||
{
|
||||
label: __( 'net sales', 'woocommerce-admin' ),
|
||||
label: __( 'net sales', 'woocommerce' ),
|
||||
value: formatAmount( netRevenue ),
|
||||
},
|
||||
];
|
||||
|
@ -350,7 +335,7 @@ class OrdersReportTable extends Component {
|
|||
tableQuery={ {
|
||||
extended_info: true,
|
||||
} }
|
||||
title={ __( 'Orders', 'woocommerce-admin' ) }
|
||||
title={ __( 'Orders', 'woocommerce' ) }
|
||||
columnPrefsKey="orders_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -36,21 +36,21 @@ const { addCesSurveyForAnalytics } = dispatch( CES_STORE_KEY );
|
|||
export const charts = applyFilters( PRODUCTS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'items_sold',
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'items_sold',
|
||||
type: 'number',
|
||||
},
|
||||
{
|
||||
key: 'net_revenue',
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'net_revenue',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'orders_count',
|
||||
type: 'number',
|
||||
|
@ -58,14 +58,14 @@ export const charts = applyFilters( PRODUCTS_REPORT_CHARTS_FILTER, [
|
|||
] );
|
||||
|
||||
const filterConfig = {
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{ label: __( 'All products', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All products', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Single product', 'woocommerce-admin' ),
|
||||
label: __( 'Single product', 'woocommerce' ),
|
||||
value: 'select_product',
|
||||
chartMode: 'item-comparison',
|
||||
subFilters: [
|
||||
|
@ -81,16 +81,16 @@ const filterConfig = {
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a product',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single product', 'woocommerce-admin' ),
|
||||
button: __( 'Single product', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
value: 'compare-products',
|
||||
chartMode: 'item-comparison',
|
||||
settings: {
|
||||
|
@ -100,14 +100,14 @@ const filterConfig = {
|
|||
labels: {
|
||||
helpText: __(
|
||||
'Check at least two products below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search for products to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __( 'Compare Products', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Products', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
},
|
||||
onClick: addCesSurveyForAnalytics,
|
||||
},
|
||||
|
@ -124,12 +124,12 @@ const variationsConfig = {
|
|||
param: 'filter-variations',
|
||||
filters: [
|
||||
{
|
||||
label: __( 'All variations', 'woocommerce-admin' ),
|
||||
label: __( 'All variations', 'woocommerce' ),
|
||||
chartMode: 'item-comparison',
|
||||
value: 'all',
|
||||
},
|
||||
{
|
||||
label: __( 'Single variation', 'woocommerce-admin' ),
|
||||
label: __( 'Single variation', 'woocommerce' ),
|
||||
value: 'select_variation',
|
||||
subFilters: [
|
||||
{
|
||||
|
@ -143,19 +143,16 @@ const variationsConfig = {
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a variation',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
button: __(
|
||||
'Single variation',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single variation', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
chartMode: 'item-comparison',
|
||||
value: 'compare-variations',
|
||||
settings: {
|
||||
|
@ -165,14 +162,14 @@ const variationsConfig = {
|
|||
labels: {
|
||||
helpText: __(
|
||||
'Check at least two variations below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search for variations to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __( 'Compare Variations', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Variations', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -194,18 +191,18 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Products Match {{select /}} Filters',
|
||||
'A sentence describing filters for Products. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
||||
if ( Object.keys( advancedFilters.filters ).length ) {
|
||||
filterConfig.filters.push( {
|
||||
label: __( 'Advanced Filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced Filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
variationsConfig.filters.push( {
|
||||
label: __( 'Advanced Filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced Filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -42,8 +42,8 @@ class ProductsReport extends Component {
|
|||
: 'products';
|
||||
const label =
|
||||
isSingleProductView && isSingleProductVariable
|
||||
? __( '%d variations', 'woocommerce-admin' )
|
||||
: __( '%d products', 'woocommerce-admin' );
|
||||
? __( '%d variations', 'woocommerce' )
|
||||
: __( '%d products', 'woocommerce' );
|
||||
|
||||
return {
|
||||
compareObject,
|
||||
|
|
|
@ -39,20 +39,20 @@ class ProductsReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Product title', 'woocommerce-admin' ),
|
||||
label: __( 'Product title', 'woocommerce' ),
|
||||
key: 'product_name',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'SKU', 'woocommerce-admin' ),
|
||||
label: __( 'SKU', 'woocommerce' ),
|
||||
key: 'sku',
|
||||
hiddenByDefault: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
key: 'items_sold',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -60,37 +60,37 @@ class ProductsReportTable extends Component {
|
|||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce' ),
|
||||
key: 'net_revenue',
|
||||
required: true,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Category', 'woocommerce-admin' ),
|
||||
label: __( 'Category', 'woocommerce' ),
|
||||
key: 'product_cat',
|
||||
},
|
||||
{
|
||||
label: __( 'Variations', 'woocommerce-admin' ),
|
||||
label: __( 'Variations', 'woocommerce' ),
|
||||
key: 'variations',
|
||||
isSortable: true,
|
||||
},
|
||||
manageStock === 'yes'
|
||||
? {
|
||||
label: __( 'Status', 'woocommerce-admin' ),
|
||||
label: __( 'Status', 'woocommerce' ),
|
||||
key: 'stock_status',
|
||||
}
|
||||
: null,
|
||||
manageStock === 'yes'
|
||||
? {
|
||||
label: __( 'Stock', 'woocommerce-admin' ),
|
||||
label: __( 'Stock', 'woocommerce' ),
|
||||
key: 'stock',
|
||||
isNumeric: true,
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ class ProductsReportTable extends Component {
|
|||
{ _x(
|
||||
'Low',
|
||||
'Indication of a low quantity',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Link>
|
||||
) : (
|
||||
|
@ -218,7 +218,7 @@ class ProductsReportTable extends Component {
|
|||
_x(
|
||||
'+%d more',
|
||||
'categories',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
productCategories.length - 1
|
||||
) }
|
||||
|
@ -252,7 +252,7 @@ class ProductsReportTable extends Component {
|
|||
? {
|
||||
display: extendedInfoManageStock
|
||||
? stockStatus
|
||||
: __( 'N/A', 'woocommerce-admin' ),
|
||||
: __( 'N/A', 'woocommerce' ),
|
||||
value: extendedInfoManageStock
|
||||
? stockStatuses[ extendedInfoStockStatus ]
|
||||
: null,
|
||||
|
@ -266,7 +266,7 @@ class ProductsReportTable extends Component {
|
|||
'number',
|
||||
stockQuantity
|
||||
)
|
||||
: __( 'N/A', 'woocommerce-admin' ),
|
||||
: __( 'N/A', 'woocommerce' ),
|
||||
value: stockQuantity,
|
||||
}
|
||||
: null,
|
||||
|
@ -289,7 +289,7 @@ class ProductsReportTable extends Component {
|
|||
'Product',
|
||||
'Products',
|
||||
productsCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', productsCount ),
|
||||
},
|
||||
|
@ -298,21 +298,16 @@ class ProductsReportTable extends Component {
|
|||
'Item sold',
|
||||
'Items sold',
|
||||
itemsSold,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', itemsSold ),
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
value: formatAmount( netRevenue ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'Orders',
|
||||
'Orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Orders', 'Orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
];
|
||||
|
@ -331,12 +326,9 @@ class ProductsReportTable extends Component {
|
|||
const labels = {
|
||||
helpText: __(
|
||||
'Check at least two products below to compare',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search by product name or SKU',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __( 'Search by product name or SKU', 'woocommerce' ),
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -364,7 +356,7 @@ class ProductsReportTable extends Component {
|
|||
extended_info: true,
|
||||
segmentby: query.segmentby,
|
||||
} }
|
||||
title={ __( 'Products', 'woocommerce-admin' ) }
|
||||
title={ __( 'Products', 'woocommerce' ) }
|
||||
columnPrefsKey="products_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -23,7 +23,7 @@ const REVENUE_REPORT_ADVANCED_FILTERS_FILTER =
|
|||
export const charts = applyFilters( REVENUE_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'gross_sales',
|
||||
label: __( 'Gross sales', 'woocommerce-admin' ),
|
||||
label: __( 'Gross sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'gross_sales',
|
||||
type: 'currency',
|
||||
|
@ -31,7 +31,7 @@ export const charts = applyFilters( REVENUE_REPORT_CHARTS_FILTER, [
|
|||
},
|
||||
{
|
||||
key: 'refunds',
|
||||
label: __( 'Returns', 'woocommerce-admin' ),
|
||||
label: __( 'Returns', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'refunds',
|
||||
type: 'currency',
|
||||
|
@ -39,7 +39,7 @@ export const charts = applyFilters( REVENUE_REPORT_CHARTS_FILTER, [
|
|||
},
|
||||
{
|
||||
key: 'coupons',
|
||||
label: __( 'Coupons', 'woocommerce-admin' ),
|
||||
label: __( 'Coupons', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'coupons',
|
||||
type: 'currency',
|
||||
|
@ -47,37 +47,37 @@ export const charts = applyFilters( REVENUE_REPORT_CHARTS_FILTER, [
|
|||
},
|
||||
{
|
||||
key: 'net_revenue',
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
orderby: 'net_revenue',
|
||||
type: 'currency',
|
||||
isReverseTrend: false,
|
||||
labelTooltipText: __(
|
||||
'Full refunds are not deducted from tax or net sales totals',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'taxes',
|
||||
label: __( 'Taxes', 'woocommerce-admin' ),
|
||||
label: __( 'Taxes', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'taxes',
|
||||
type: 'currency',
|
||||
isReverseTrend: false,
|
||||
labelTooltipText: __(
|
||||
'Full refunds are not deducted from tax or net sales totals',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'shipping',
|
||||
label: __( 'Shipping', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping', 'woocommerce' ),
|
||||
orderby: 'shipping',
|
||||
type: 'currency',
|
||||
isReverseTrend: false,
|
||||
},
|
||||
{
|
||||
key: 'total_sales',
|
||||
label: __( 'Total sales', 'woocommerce-admin' ),
|
||||
label: __( 'Total sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'total_sales',
|
||||
type: 'currency',
|
||||
|
@ -100,7 +100,7 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Revenue Matches {{select /}} Filters',
|
||||
'A sentence describing filters for Revenue. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
@ -109,11 +109,11 @@ const filterValues = [];
|
|||
|
||||
if ( Object.keys( advancedFilters.filters ).length ) {
|
||||
filterValues.push( {
|
||||
label: __( 'All Revenue', 'woocommerce-admin' ),
|
||||
label: __( 'All Revenue', 'woocommerce' ),
|
||||
value: 'all',
|
||||
} );
|
||||
filterValues.push( {
|
||||
label: __( 'Advanced Filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced Filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ if ( Object.keys( advancedFilters.filters ).length ) {
|
|||
*/
|
||||
export const filters = applyFilters( REVENUE_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => filterValues.length > 0,
|
||||
|
|
|
@ -54,7 +54,7 @@ class RevenueReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Date', 'woocommerce-admin' ),
|
||||
label: __( 'Date', 'woocommerce' ),
|
||||
key: 'date',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -62,56 +62,56 @@ class RevenueReportTable extends Component {
|
|||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Gross sales', 'woocommerce-admin' ),
|
||||
label: __( 'Gross sales', 'woocommerce' ),
|
||||
key: 'gross_sales',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Returns', 'woocommerce-admin' ),
|
||||
label: __( 'Returns', 'woocommerce' ),
|
||||
key: 'refunds',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Coupons', 'woocommerce-admin' ),
|
||||
label: __( 'Coupons', 'woocommerce' ),
|
||||
key: 'coupons',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
key: 'net_revenue',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Taxes', 'woocommerce-admin' ),
|
||||
label: __( 'Taxes', 'woocommerce' ),
|
||||
key: 'taxes',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Shipping', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping', 'woocommerce' ),
|
||||
key: 'shipping',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Total sales', 'woocommerce-admin' ),
|
||||
label: __( 'Total sales', 'woocommerce' ),
|
||||
key: 'total_sales',
|
||||
required: false,
|
||||
isSortable: true,
|
||||
|
@ -222,44 +222,39 @@ class RevenueReportTable extends Component {
|
|||
const currency = getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n( 'day', 'days', totalResults, 'woocommerce-admin' ),
|
||||
label: _n( 'day', 'days', totalResults, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', totalResults ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'order',
|
||||
'orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'order', 'orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
{
|
||||
label: __( 'Gross sales', 'woocommerce-admin' ),
|
||||
label: __( 'Gross sales', 'woocommerce' ),
|
||||
value: formatAmount( grossSales ),
|
||||
},
|
||||
{
|
||||
label: __( 'Returns', 'woocommerce-admin' ),
|
||||
label: __( 'Returns', 'woocommerce' ),
|
||||
value: formatAmount( refunds ),
|
||||
},
|
||||
{
|
||||
label: __( 'Coupons', 'woocommerce-admin' ),
|
||||
label: __( 'Coupons', 'woocommerce' ),
|
||||
value: formatAmount( coupons ),
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
value: formatAmount( netRevenue ),
|
||||
},
|
||||
{
|
||||
label: __( 'Taxes', 'woocommerce-admin' ),
|
||||
label: __( 'Taxes', 'woocommerce' ),
|
||||
value: formatAmount( taxes ),
|
||||
},
|
||||
{
|
||||
label: __( 'Shipping', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping', 'woocommerce' ),
|
||||
value: formatAmount( shipping ),
|
||||
},
|
||||
{
|
||||
label: __( 'Total sales', 'woocommerce-admin' ),
|
||||
label: __( 'Total sales', 'woocommerce' ),
|
||||
value: formatAmount( totalSales ),
|
||||
},
|
||||
];
|
||||
|
@ -277,7 +272,7 @@ class RevenueReportTable extends Component {
|
|||
summaryFields={ summaryFields }
|
||||
query={ query }
|
||||
tableData={ tableData }
|
||||
title={ __( 'Revenue', 'woocommerce-admin' ) }
|
||||
title={ __( 'Revenue', 'woocommerce' ) }
|
||||
columnPrefsKey="revenue_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -25,7 +25,7 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Products Match {{select /}} Filters',
|
||||
'A sentence describing filters for Products. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
@ -42,36 +42,36 @@ export const advancedFilters = applyFilters(
|
|||
*/
|
||||
export const filters = applyFilters( STOCK_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'paged', 'per_page' ],
|
||||
param: 'type',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{ label: __( 'All products', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All products', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Out of stock', 'woocommerce-admin' ),
|
||||
label: __( 'Out of stock', 'woocommerce' ),
|
||||
value: 'outofstock',
|
||||
},
|
||||
{
|
||||
label: __( 'Low stock', 'woocommerce-admin' ),
|
||||
label: __( 'Low stock', 'woocommerce' ),
|
||||
value: 'lowstock',
|
||||
},
|
||||
{ label: __( 'In stock', 'woocommerce-admin' ), value: 'instock' },
|
||||
{ label: __( 'In stock', 'woocommerce' ), value: 'instock' },
|
||||
{
|
||||
label: __( 'On backorder', 'woocommerce-admin' ),
|
||||
label: __( 'On backorder', 'woocommerce' ),
|
||||
value: 'onbackorder',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Filter by', 'woocommerce-admin' ),
|
||||
label: __( 'Filter by', 'woocommerce' ),
|
||||
staticParams: [ 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => Object.keys( advancedFilters.filters ).length,
|
||||
filters: [
|
||||
{ label: __( 'All Products', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All Products', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Advanced Filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced Filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -31,25 +31,25 @@ class StockReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Product / Variation', 'woocommerce-admin' ),
|
||||
label: __( 'Product / Variation', 'woocommerce' ),
|
||||
key: 'title',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'SKU', 'woocommerce-admin' ),
|
||||
label: __( 'SKU', 'woocommerce' ),
|
||||
key: 'sku',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Status', 'woocommerce-admin' ),
|
||||
label: __( 'Status', 'woocommerce' ),
|
||||
key: 'stock_status',
|
||||
isSortable: true,
|
||||
defaultSort: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Stock', 'woocommerce-admin' ),
|
||||
label: __( 'Stock', 'woocommerce' ),
|
||||
key: 'stock_quantity',
|
||||
isSortable: true,
|
||||
},
|
||||
|
@ -100,7 +100,7 @@ class StockReportTable extends Component {
|
|||
{ _x(
|
||||
'Low',
|
||||
'Indication of a low quantity',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Link>
|
||||
) : (
|
||||
|
@ -129,7 +129,7 @@ class StockReportTable extends Component {
|
|||
'number',
|
||||
stockQuantity
|
||||
)
|
||||
: __( 'N/A', 'woocommerce-admin' ),
|
||||
: __( 'N/A', 'woocommerce' ),
|
||||
value: stockQuantity,
|
||||
},
|
||||
];
|
||||
|
@ -147,28 +147,23 @@ class StockReportTable extends Component {
|
|||
const currency = this.context.getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n(
|
||||
'Product',
|
||||
'Products',
|
||||
products,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'Product', 'Products', products, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', products ),
|
||||
},
|
||||
{
|
||||
label: __( 'Out of stock', 'woocommerce-admin' ),
|
||||
label: __( 'Out of stock', 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', outofstock ),
|
||||
},
|
||||
{
|
||||
label: __( 'Low stock', 'woocommerce-admin' ),
|
||||
label: __( 'Low stock', 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', lowstock ),
|
||||
},
|
||||
{
|
||||
label: __( 'On backorder', 'woocommerce-admin' ),
|
||||
label: __( 'On backorder', 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', onbackorder ),
|
||||
},
|
||||
{
|
||||
label: __( 'In stock', 'woocommerce-admin' ),
|
||||
label: __( 'In stock', 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', instock ),
|
||||
},
|
||||
];
|
||||
|
@ -196,7 +191,7 @@ class StockReportTable extends Component {
|
|||
order: query.order || 'asc',
|
||||
type: query.type || 'all',
|
||||
} }
|
||||
title={ __( 'Stock', 'woocommerce-admin' ) }
|
||||
title={ __( 'Stock', 'woocommerce' ) }
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
/>
|
||||
|
|
|
@ -33,28 +33,28 @@ const { addCesSurveyForAnalytics } = dispatch( CES_STORE_KEY );
|
|||
export const charts = applyFilters( TAXES_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'total_tax',
|
||||
label: __( 'Total tax', 'woocommerce-admin' ),
|
||||
label: __( 'Total tax', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'total_tax',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'order_tax',
|
||||
label: __( 'Order tax', 'woocommerce-admin' ),
|
||||
label: __( 'Order tax', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'order_tax',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'shipping_tax',
|
||||
label: __( 'Shipping tax', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping tax', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'shipping_tax',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'orders_count',
|
||||
type: 'number',
|
||||
|
@ -76,15 +76,15 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Taxes match {{select /}} filters',
|
||||
'A sentence describing filters for Taxes. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
}
|
||||
);
|
||||
|
||||
const filterValues = [
|
||||
{ label: __( 'All taxes', 'woocommerce-admin' ), value: 'all' },
|
||||
{ label: __( 'All taxes', 'woocommerce' ), value: 'all' },
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
value: 'compare-taxes',
|
||||
chartMode: 'item-comparison',
|
||||
settings: {
|
||||
|
@ -101,14 +101,14 @@ const filterValues = [
|
|||
labels: {
|
||||
helpText: __(
|
||||
'Check at least two tax codes below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search for tax codes to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __( 'Compare Tax Codes', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Tax Codes', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
},
|
||||
onClick: addCesSurveyForAnalytics,
|
||||
},
|
||||
|
@ -117,7 +117,7 @@ const filterValues = [
|
|||
|
||||
if ( Object.keys( advancedFilters.filters ).length ) {
|
||||
filterValues.push( {
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
} );
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ if ( Object.keys( advancedFilters.filters ).length ) {
|
|||
*/
|
||||
export const filters = applyFilters( TAXES_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
|
|
|
@ -20,7 +20,7 @@ class TaxesReport extends Component {
|
|||
const { query } = this.props;
|
||||
const isCompareTaxView = query.filter === 'compare-taxes';
|
||||
const mode = isCompareTaxView ? 'item-comparison' : 'time-comparison';
|
||||
const itemsLabel = __( '%d taxes', 'woocommerce-admin' );
|
||||
const itemsLabel = __( '%d taxes', 'woocommerce' );
|
||||
|
||||
return {
|
||||
itemsLabel,
|
||||
|
|
|
@ -27,35 +27,35 @@ class TaxesReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Tax code', 'woocommerce-admin' ),
|
||||
label: __( 'Tax code', 'woocommerce' ),
|
||||
key: 'tax_code',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Rate', 'woocommerce-admin' ),
|
||||
label: __( 'Rate', 'woocommerce' ),
|
||||
key: 'rate',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Total tax', 'woocommerce-admin' ),
|
||||
label: __( 'Total tax', 'woocommerce' ),
|
||||
key: 'total_tax',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Order tax', 'woocommerce-admin' ),
|
||||
label: __( 'Order tax', 'woocommerce' ),
|
||||
key: 'order_tax',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Shipping tax', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping tax', 'woocommerce' ),
|
||||
key: 'shipping_tax',
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -144,33 +144,23 @@ class TaxesReportTable extends Component {
|
|||
const currency = getCurrencyConfig();
|
||||
return [
|
||||
{
|
||||
label: _n(
|
||||
'tax code',
|
||||
'tax codes',
|
||||
taxesCodes,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'tax code', 'tax codes', taxesCodes, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', taxesCodes ),
|
||||
},
|
||||
{
|
||||
label: __( 'total tax', 'woocommerce-admin' ),
|
||||
label: __( 'total tax', 'woocommerce' ),
|
||||
value: formatAmount( totalTax ),
|
||||
},
|
||||
{
|
||||
label: __( 'order tax', 'woocommerce-admin' ),
|
||||
label: __( 'order tax', 'woocommerce' ),
|
||||
value: formatAmount( orderTax ),
|
||||
},
|
||||
{
|
||||
label: __( 'shipping tax', 'woocommerce-admin' ),
|
||||
label: __( 'shipping tax', 'woocommerce' ),
|
||||
value: formatAmount( shippingTax ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'order',
|
||||
'orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'order', 'orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
];
|
||||
|
@ -200,7 +190,7 @@ class TaxesReportTable extends Component {
|
|||
tableQuery={ {
|
||||
orderby: query.orderby || 'tax_rate_id',
|
||||
} }
|
||||
title={ __( 'Taxes', 'woocommerce-admin' ) }
|
||||
title={ __( 'Taxes', 'woocommerce' ) }
|
||||
columnPrefsKey="taxes_report_columns"
|
||||
filters={ filters }
|
||||
advancedFilters={ advancedFilters }
|
||||
|
|
|
@ -7,7 +7,7 @@ export function getTaxCode( tax ) {
|
|||
return [
|
||||
tax.country,
|
||||
tax.state,
|
||||
tax.name || __( 'TAX', 'woocommerce-admin' ),
|
||||
tax.name || __( 'TAX', 'woocommerce' ),
|
||||
tax.priority,
|
||||
]
|
||||
.map( ( item ) => item.toString().toUpperCase().trim() )
|
||||
|
|
|
@ -37,21 +37,21 @@ const { addCesSurveyForAnalytics } = dispatch( CES_STORE_KEY );
|
|||
export const charts = applyFilters( VARIATIONS_REPORT_CHARTS_FILTER, [
|
||||
{
|
||||
key: 'items_sold',
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'items_sold',
|
||||
type: 'number',
|
||||
},
|
||||
{
|
||||
key: 'net_revenue',
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'net_revenue',
|
||||
type: 'currency',
|
||||
},
|
||||
{
|
||||
key: 'orders_count',
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
order: 'desc',
|
||||
orderby: 'orders_count',
|
||||
type: 'number',
|
||||
|
@ -70,18 +70,18 @@ export const charts = applyFilters( VARIATIONS_REPORT_CHARTS_FILTER, [
|
|||
*/
|
||||
export const filters = applyFilters( VARIATIONS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
label: __( 'Show', 'woocommerce' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter-variations',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
{
|
||||
label: __( 'All variations', 'woocommerce-admin' ),
|
||||
label: __( 'All variations', 'woocommerce' ),
|
||||
chartMode: 'item-comparison',
|
||||
value: 'all',
|
||||
},
|
||||
{
|
||||
label: __( 'Single variation', 'woocommerce-admin' ),
|
||||
label: __( 'Single variation', 'woocommerce' ),
|
||||
value: 'select_variation',
|
||||
subFilters: [
|
||||
{
|
||||
|
@ -95,19 +95,16 @@ export const filters = applyFilters( VARIATIONS_REPORT_FILTERS_FILTER, [
|
|||
labels: {
|
||||
placeholder: __(
|
||||
'Type to search for a variation',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
button: __(
|
||||
'Single variation',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
button: __( 'Single variation', 'woocommerce' ),
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: __( 'Comparison', 'woocommerce-admin' ),
|
||||
label: __( 'Comparison', 'woocommerce' ),
|
||||
chartMode: 'item-comparison',
|
||||
value: 'compare-variations',
|
||||
settings: {
|
||||
|
@ -117,20 +114,20 @@ export const filters = applyFilters( VARIATIONS_REPORT_FILTERS_FILTER, [
|
|||
labels: {
|
||||
helpText: __(
|
||||
'Check at least two variations below to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search for variations to compare',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
title: __( 'Compare Variations', 'woocommerce-admin' ),
|
||||
update: __( 'Compare', 'woocommerce-admin' ),
|
||||
title: __( 'Compare Variations', 'woocommerce' ),
|
||||
update: __( 'Compare', 'woocommerce' ),
|
||||
},
|
||||
onClick: addCesSurveyForAnalytics,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: __( 'Advanced filters', 'woocommerce-admin' ),
|
||||
label: __( 'Advanced filters', 'woocommerce' ),
|
||||
value: 'advanced',
|
||||
},
|
||||
],
|
||||
|
@ -151,38 +148,31 @@ export const advancedFilters = applyFilters(
|
|||
title: _x(
|
||||
'Variations match {{select /}} filters',
|
||||
'A sentence describing filters for Variations. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filters: {
|
||||
attribute: {
|
||||
allowMultiple: true,
|
||||
labels: {
|
||||
add: __( 'Attribute', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search attributes', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove attribute filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Attribute', 'woocommerce' ),
|
||||
placeholder: __( 'Search attributes', 'woocommerce' ),
|
||||
remove: __( 'Remove attribute filter', 'woocommerce' ),
|
||||
rule: __(
|
||||
'Select a product attribute filter match',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Attribute{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select attributes', 'woocommerce-admin' ),
|
||||
filter: __( 'Select attributes', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'is',
|
||||
/* translators: Sentence fragment, logical, "Is" refers to searching for product variations matching a chosen attribute. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Is',
|
||||
'product attribute',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Is', 'product attribute', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'is_not',
|
||||
|
@ -190,7 +180,7 @@ export const advancedFilters = applyFilters(
|
|||
label: _x(
|
||||
'Is Not',
|
||||
'product attribute',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
],
|
||||
|
@ -200,41 +190,27 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
category: {
|
||||
labels: {
|
||||
add: __( 'Categories', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search categories', 'woocommerce-admin' ),
|
||||
remove: __(
|
||||
'Remove categories filter',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
rule: __(
|
||||
'Select a category filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Categories', 'woocommerce' ),
|
||||
placeholder: __( 'Search categories', 'woocommerce' ),
|
||||
remove: __( 'Remove categories filter', 'woocommerce' ),
|
||||
rule: __( 'Select a category filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Category filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Category{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select categories', 'woocommerce-admin' ),
|
||||
filter: __( 'Select categories', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to variations including a given category. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'categories',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'categories', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to variations excluding a given category. Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'categories',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'categories', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
@ -245,38 +221,27 @@ export const advancedFilters = applyFilters(
|
|||
},
|
||||
product: {
|
||||
labels: {
|
||||
add: __( 'Products', 'woocommerce-admin' ),
|
||||
placeholder: __( 'Search products', 'woocommerce-admin' ),
|
||||
remove: __( 'Remove products filter', 'woocommerce-admin' ),
|
||||
rule: __(
|
||||
'Select a product filter match',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
add: __( 'Products', 'woocommerce' ),
|
||||
placeholder: __( 'Search products', 'woocommerce' ),
|
||||
remove: __( 'Remove products filter', 'woocommerce' ),
|
||||
rule: __( 'Select a product filter match', 'woocommerce' ),
|
||||
/* translators: A sentence describing a Product filter. See screen shot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
title: __(
|
||||
'{{title}}Product{{/title}} {{rule /}} {{filter /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
filter: __( 'Select products', 'woocommerce-admin' ),
|
||||
filter: __( 'Select products', 'woocommerce' ),
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
value: 'includes',
|
||||
/* translators: Sentence fragment, logical, "Includes" refers to orders including a given product(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Includes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Includes', 'products', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: 'excludes',
|
||||
/* translators: Sentence fragment, logical, "Excludes" refers to orders excluding a given product(s). Screenshot for context: https://cloudup.com/cSsUY9VeCVJ */
|
||||
label: _x(
|
||||
'Excludes',
|
||||
'products',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _x( 'Excludes', 'products', 'woocommerce' ),
|
||||
},
|
||||
],
|
||||
input: {
|
||||
|
|
|
@ -24,7 +24,7 @@ const getChartMeta = ( { query } ) => {
|
|||
|
||||
return {
|
||||
compareObject: 'variations',
|
||||
itemsLabel: __( '%d variations', 'woocommerce-admin' ),
|
||||
itemsLabel: __( '%d variations', 'woocommerce' ),
|
||||
mode: isCompareView ? 'item-comparison' : 'time-comparison',
|
||||
};
|
||||
};
|
||||
|
|
|
@ -42,19 +42,19 @@ class VariationsReportTable extends Component {
|
|||
getHeadersContent() {
|
||||
return [
|
||||
{
|
||||
label: __( 'Product / Variation title', 'woocommerce-admin' ),
|
||||
label: __( 'Product / Variation title', 'woocommerce' ),
|
||||
key: 'name',
|
||||
required: true,
|
||||
isLeftAligned: true,
|
||||
},
|
||||
{
|
||||
label: __( 'SKU', 'woocommerce-admin' ),
|
||||
label: __( 'SKU', 'woocommerce' ),
|
||||
key: 'sku',
|
||||
hiddenByDefault: true,
|
||||
isSortable: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
key: 'items_sold',
|
||||
required: true,
|
||||
defaultSort: true,
|
||||
|
@ -62,28 +62,28 @@ class VariationsReportTable extends Component {
|
|||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
screenReaderLabel: __( 'Net sales', 'woocommerce' ),
|
||||
key: 'net_revenue',
|
||||
required: true,
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
key: 'orders_count',
|
||||
isSortable: true,
|
||||
isNumeric: true,
|
||||
},
|
||||
manageStock === 'yes'
|
||||
? {
|
||||
label: __( 'Status', 'woocommerce-admin' ),
|
||||
label: __( 'Status', 'woocommerce' ),
|
||||
key: 'stock_status',
|
||||
}
|
||||
: null,
|
||||
manageStock === 'yes'
|
||||
? {
|
||||
label: __( 'Stock', 'woocommerce-admin' ),
|
||||
label: __( 'Stock', 'woocommerce' ),
|
||||
key: 'stock',
|
||||
isNumeric: true,
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ class VariationsReportTable extends Component {
|
|||
{ _x(
|
||||
'Low',
|
||||
'Indication of a low quantity',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Link>
|
||||
) : (
|
||||
|
@ -221,7 +221,7 @@ class VariationsReportTable extends Component {
|
|||
'variation sold',
|
||||
'variations sold',
|
||||
variationsCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
variationsCount,
|
||||
query
|
||||
|
@ -233,21 +233,16 @@ class VariationsReportTable extends Component {
|
|||
'item sold',
|
||||
'items sold',
|
||||
itemsSold,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
value: formatValue( currency, 'number', itemsSold ),
|
||||
},
|
||||
{
|
||||
label: __( 'net sales', 'woocommerce-admin' ),
|
||||
label: __( 'net sales', 'woocommerce' ),
|
||||
value: formatAmount( netRevenue ),
|
||||
},
|
||||
{
|
||||
label: _n(
|
||||
'orders',
|
||||
'orders',
|
||||
ordersCount,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
label: _n( 'orders', 'orders', ordersCount, 'woocommerce' ),
|
||||
value: formatValue( currency, 'number', ordersCount ),
|
||||
},
|
||||
];
|
||||
|
@ -265,12 +260,9 @@ class VariationsReportTable extends Component {
|
|||
const labels = {
|
||||
helpText: __(
|
||||
'Check at least two variations below to compare',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
placeholder: __(
|
||||
'Search by variation name or SKU',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
placeholder: __( 'Search by variation name or SKU', 'woocommerce' ),
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -309,7 +301,7 @@ class VariationsReportTable extends Component {
|
|||
*/
|
||||
title={ applyFilters(
|
||||
EXPERIMENTAL_VARIATIONS_REPORT_TABLE_TITLE_FILTER,
|
||||
__( 'Variations', 'woocommerce-admin' ),
|
||||
__( 'Variations', 'woocommerce' ),
|
||||
query
|
||||
) }
|
||||
columnPrefsKey="variations_report_columns"
|
||||
|
|
|
@ -31,7 +31,7 @@ const filteredOrderStatuses = Object.keys( ORDER_STATUSES )
|
|||
value: key,
|
||||
label: ORDER_STATUSES[ key ],
|
||||
description: sprintf(
|
||||
__( 'Exclude the %s status from reports', 'woocommerce-admin' ),
|
||||
__( 'Exclude the %s status from reports', 'woocommerce' ),
|
||||
ORDER_STATUSES[ key ]
|
||||
),
|
||||
};
|
||||
|
@ -51,23 +51,20 @@ const orderStatusOptions = [
|
|||
},
|
||||
{
|
||||
key: 'customStatuses',
|
||||
label: __( 'Custom Statuses', 'woocommerce-admin' ),
|
||||
label: __( 'Custom Statuses', 'woocommerce' ),
|
||||
options: filteredOrderStatuses.filter(
|
||||
( status ) => ! DEFAULT_ORDER_STATUSES.includes( status.value )
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'unregisteredStatuses',
|
||||
label: __( 'Unregistered Statuses', 'woocommerce-admin' ),
|
||||
label: __( 'Unregistered Statuses', 'woocommerce' ),
|
||||
options: Object.keys( unregisteredOrderStatuses ).map( ( key ) => {
|
||||
return {
|
||||
value: key,
|
||||
label: key,
|
||||
description: sprintf(
|
||||
__(
|
||||
'Exclude the %s status from reports',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
__( 'Exclude the %s status from reports', 'woocommerce' ),
|
||||
key
|
||||
),
|
||||
};
|
||||
|
@ -83,14 +80,14 @@ const orderStatusOptions = [
|
|||
*/
|
||||
export const config = applyFilters( SETTINGS_FILTER, {
|
||||
woocommerce_excluded_report_order_statuses: {
|
||||
label: __( 'Excluded statuses:', 'woocommerce-admin' ),
|
||||
label: __( 'Excluded statuses:', 'woocommerce' ),
|
||||
inputType: 'checkboxGroup',
|
||||
options: orderStatusOptions,
|
||||
helpText: interpolateComponents( {
|
||||
mixedString: __(
|
||||
'Orders with these statuses are excluded from the totals in your reports. ' +
|
||||
'The {{strong}}Refunded{{/strong}} status can not be excluded.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
components: {
|
||||
strong: <strong />,
|
||||
|
@ -99,25 +96,25 @@ export const config = applyFilters( SETTINGS_FILTER, {
|
|||
defaultValue: [ 'pending', 'cancelled', 'failed' ],
|
||||
},
|
||||
woocommerce_actionable_order_statuses: {
|
||||
label: __( 'Actionable statuses:', 'woocommerce-admin' ),
|
||||
label: __( 'Actionable statuses:', 'woocommerce' ),
|
||||
inputType: 'checkboxGroup',
|
||||
options: orderStatusOptions,
|
||||
helpText: __(
|
||||
'Orders with these statuses require action on behalf of the store admin. ' +
|
||||
'These orders will show up in the Home Screen - Orders task.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
defaultValue: DEFAULT_ACTIONABLE_STATUSES,
|
||||
},
|
||||
woocommerce_default_date_range: {
|
||||
name: 'woocommerce_default_date_range',
|
||||
label: __( 'Default date range:', 'woocommerce-admin' ),
|
||||
label: __( 'Default date range:', 'woocommerce' ),
|
||||
inputType: 'component',
|
||||
component: DefaultDate,
|
||||
helpText: __(
|
||||
'Select a default date range. When no range is selected, reports will be viewed by ' +
|
||||
'the default date range.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
defaultValue: DEFAULT_DATE_RANGE,
|
||||
},
|
||||
|
|
|
@ -35,7 +35,7 @@ function HistoricalDataActions( {
|
|||
);
|
||||
const errorMessage = __(
|
||||
'There was a problem rebuilding your report data.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
|
||||
const importStarted = true;
|
||||
|
@ -48,7 +48,7 @@ function HistoricalDataActions( {
|
|||
const path = '/wc-analytics/reports/import/cancel';
|
||||
const errorMessage = __(
|
||||
'There was a problem stopping your current import.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
makeQuery( path, errorMessage );
|
||||
};
|
||||
|
@ -77,7 +77,7 @@ function HistoricalDataActions( {
|
|||
const path = '/wc-analytics/reports/import/delete';
|
||||
const errorMessage = __(
|
||||
'There was a problem deleting your previous data.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
makeQuery( path, errorMessage );
|
||||
|
||||
|
@ -106,17 +106,17 @@ function HistoricalDataActions( {
|
|||
isPrimary
|
||||
onClick={ onStopImport }
|
||||
>
|
||||
{ __( 'Stop Import', 'woocommerce-admin' ) }
|
||||
{ __( 'Stop Import', 'woocommerce' ) }
|
||||
</Button>
|
||||
<div className="woocommerce-setting__help woocommerce-settings-historical-data__action-help">
|
||||
{ __(
|
||||
'Imported data will not be lost if the import is stopped.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
<br />
|
||||
{ __(
|
||||
'Navigating away from this page will not affect the import.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</div>
|
||||
</Fragment>
|
||||
|
@ -132,12 +132,12 @@ function HistoricalDataActions( {
|
|||
onClick={ onStartImport }
|
||||
disabled={ importDisabled }
|
||||
>
|
||||
{ __( 'Start', 'woocommerce-admin' ) }
|
||||
{ __( 'Start', 'woocommerce' ) }
|
||||
</Button>
|
||||
<Button isSecondary onClick={ deletePreviousData }>
|
||||
{ __(
|
||||
'Delete Previously Imported Data',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Button>
|
||||
</Fragment>
|
||||
|
@ -151,7 +151,7 @@ function HistoricalDataActions( {
|
|||
onClick={ onStartImport }
|
||||
disabled={ importDisabled }
|
||||
>
|
||||
{ __( 'Start', 'woocommerce-admin' ) }
|
||||
{ __( 'Start', 'woocommerce' ) }
|
||||
</Button>
|
||||
</Fragment>
|
||||
);
|
||||
|
@ -162,7 +162,7 @@ function HistoricalDataActions( {
|
|||
'error',
|
||||
__(
|
||||
'Something went wrong with the importation process.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -171,13 +171,10 @@ function HistoricalDataActions( {
|
|||
return (
|
||||
<Fragment>
|
||||
<Button isSecondary onClick={ reimportData }>
|
||||
{ __( 'Re-import Data', 'woocommerce-admin' ) }
|
||||
{ __( 'Re-import Data', 'woocommerce' ) }
|
||||
</Button>
|
||||
<Button isSecondary onClick={ deletePreviousData }>
|
||||
{ __(
|
||||
'Delete Previously Imported Data',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
{ __( 'Delete Previously Imported Data', 'woocommerce' ) }
|
||||
</Button>
|
||||
</Fragment>
|
||||
);
|
||||
|
|
|
@ -23,7 +23,7 @@ class HistoricalData extends Component {
|
|||
constructor() {
|
||||
super( ...arguments );
|
||||
|
||||
this.dateFormat = __( 'MM/DD/YYYY', 'woocommerce-admin' );
|
||||
this.dateFormat = __( 'MM/DD/YYYY', 'woocommerce' );
|
||||
this.intervalId = -1;
|
||||
this.lastImportStopTimestamp = 0;
|
||||
this.cacheNeedsClearing = true;
|
||||
|
|
|
@ -41,10 +41,7 @@ class HistoricalDataLayout extends Component {
|
|||
return (
|
||||
<Fragment>
|
||||
<SectionHeader
|
||||
title={ __(
|
||||
'Import historical data',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
title={ __( 'Import historical data', 'woocommerce' ) }
|
||||
/>
|
||||
<div className="woocommerce-settings__wrapper">
|
||||
<div className="woocommerce-setting">
|
||||
|
@ -53,7 +50,7 @@ class HistoricalDataLayout extends Component {
|
|||
{ __(
|
||||
'This tool populates historical analytics data by processing customers ' +
|
||||
'and orders created prior to activating WooCommerce Admin.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</span>
|
||||
{ status !== 'finished' && (
|
||||
|
@ -70,7 +67,7 @@ class HistoricalDataLayout extends Component {
|
|||
<HistoricalDataProgress
|
||||
label={ __(
|
||||
'Registered Customers',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
progress={ customersProgress }
|
||||
total={ customersTotal }
|
||||
|
@ -78,7 +75,7 @@ class HistoricalDataLayout extends Component {
|
|||
<HistoricalDataProgress
|
||||
label={ __(
|
||||
'Orders and Refunds',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
progress={ ordersProgress }
|
||||
total={ ordersTotal }
|
||||
|
|
|
@ -44,7 +44,7 @@ function HistoricalDataPeriodSelector( {
|
|||
return (
|
||||
<div className="woocommerce-settings-historical-data__column">
|
||||
<div className="woocommerce-settings-historical-data__column-label">
|
||||
{ __( 'Beginning on', 'woocommerce-admin' ) }
|
||||
{ __( 'Beginning on', 'woocommerce' ) }
|
||||
</div>
|
||||
<DatePicker
|
||||
date={ momentDate.isValid() ? momentDate.toDate() : null }
|
||||
|
@ -65,10 +65,7 @@ function HistoricalDataPeriodSelector( {
|
|||
<div className="woocommerce-settings-historical-data__columns">
|
||||
<div className="woocommerce-settings-historical-data__column">
|
||||
<SelectControl
|
||||
label={ __(
|
||||
'Import historical data',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Import historical data', 'woocommerce' ) }
|
||||
value={ value.label }
|
||||
disabled={ disabled }
|
||||
onChange={ onSelectChange }
|
||||
|
|
|
@ -5,15 +5,12 @@ import { __, sprintf } from '@wordpress/i18n';
|
|||
import { isNil } from 'lodash';
|
||||
|
||||
function HistoricalDataProgress( { label, progress, total } ) {
|
||||
const labelText = sprintf(
|
||||
__( 'Imported %(label)s', 'woocommerce-admin' ),
|
||||
{
|
||||
label,
|
||||
}
|
||||
);
|
||||
const labelText = sprintf( __( 'Imported %(label)s', 'woocommerce' ), {
|
||||
label,
|
||||
} );
|
||||
|
||||
const labelCounters = ! isNil( total )
|
||||
? sprintf( __( '%(progress)s of %(total)s', 'woocommerce-admin' ), {
|
||||
? sprintf( __( '%(progress)s of %(total)s', 'woocommerce' ), {
|
||||
progress: progress || 0,
|
||||
total,
|
||||
} )
|
||||
|
|
|
@ -17,7 +17,7 @@ function HistoricalDataSkipCheckbox( { checked, disabled, setSkipPrevious } ) {
|
|||
disabled={ disabled }
|
||||
label={ __(
|
||||
'Skip previously imported customers and orders',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
onChange={ skipChange }
|
||||
/>
|
||||
|
|
|
@ -24,31 +24,31 @@ function HistoricalDataStatus( { importDate, status } ) {
|
|||
* @param {string} statuses.finished Message displayed after import.
|
||||
*/
|
||||
const statusLabels = applyFilters( HISTORICAL_DATA_STATUS_FILTER, {
|
||||
nothing: __( 'Nothing To Import', 'woocommerce-admin' ),
|
||||
ready: __( 'Ready To Import', 'woocommerce-admin' ),
|
||||
nothing: __( 'Nothing To Import', 'woocommerce' ),
|
||||
ready: __( 'Ready To Import', 'woocommerce' ),
|
||||
initializing: [
|
||||
__( 'Initializing', 'woocommerce-admin' ),
|
||||
__( 'Initializing', 'woocommerce' ),
|
||||
<Spinner key="spinner" />,
|
||||
],
|
||||
customers: [
|
||||
__( 'Importing Customers', 'woocommerce-admin' ),
|
||||
__( 'Importing Customers', 'woocommerce' ),
|
||||
<Spinner key="spinner" />,
|
||||
],
|
||||
orders: [
|
||||
__( 'Importing Orders', 'woocommerce-admin' ),
|
||||
__( 'Importing Orders', 'woocommerce' ),
|
||||
<Spinner key="spinner" />,
|
||||
],
|
||||
finalizing: [
|
||||
__( 'Finalizing', 'woocommerce-admin' ),
|
||||
__( 'Finalizing', 'woocommerce' ),
|
||||
<Spinner key="spinner" />,
|
||||
],
|
||||
finished:
|
||||
importDate === -1
|
||||
? __( 'All historical data imported', 'woocommerce-admin' )
|
||||
? __( 'All historical data imported', 'woocommerce' )
|
||||
: sprintf(
|
||||
__(
|
||||
'Historical data from %s onward imported',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
// @todo The date formatting should be localized ( 'll' ), but this is currently broken in Gutenberg.
|
||||
// See https://github.com/WordPress/gutenberg/issues/12626 for details.
|
||||
|
@ -58,7 +58,7 @@ function HistoricalDataStatus( { importDate, status } ) {
|
|||
|
||||
return (
|
||||
<span className="woocommerce-settings-historical-data__status">
|
||||
{ __( 'Status:', 'woocommerce-admin' ) + ' ' }
|
||||
{ __( 'Status:', 'woocommerce' ) + ' ' }
|
||||
{ statusLabels[ status ] }
|
||||
</span>
|
||||
);
|
||||
|
|
|
@ -35,7 +35,7 @@ const Settings = ( { createNotice, query } ) => {
|
|||
if ( isDirty ) {
|
||||
event.returnValue = __(
|
||||
'You have unsaved changes. If you proceed, they will be lost.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
return event.returnValue;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ const Settings = ( { createNotice, query } ) => {
|
|||
'success',
|
||||
__(
|
||||
'Your settings have been successfully saved.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
|
@ -64,7 +64,7 @@ const Settings = ( { createNotice, query } ) => {
|
|||
'error',
|
||||
__(
|
||||
'There was an error saving your settings. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ const Settings = ( { createNotice, query } ) => {
|
|||
window.confirm(
|
||||
__(
|
||||
'Are you sure you want to reset all settings to default values?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
)
|
||||
) {
|
||||
|
@ -130,7 +130,7 @@ const Settings = ( { createNotice, query } ) => {
|
|||
return (
|
||||
<Fragment>
|
||||
<SectionHeader
|
||||
title={ __( 'Analytics settings', 'woocommerce-admin' ) }
|
||||
title={ __( 'Analytics settings', 'woocommerce' ) }
|
||||
/>
|
||||
<div className="woocommerce-settings__wrapper">
|
||||
{ Object.keys( config ).map( ( setting ) => (
|
||||
|
@ -144,14 +144,14 @@ const Settings = ( { createNotice, query } ) => {
|
|||
) ) }
|
||||
<div className="woocommerce-settings__actions">
|
||||
<Button isSecondary onClick={ resetDefaults }>
|
||||
{ __( 'Reset defaults', 'woocommerce-admin' ) }
|
||||
{ __( 'Reset defaults', 'woocommerce' ) }
|
||||
</Button>
|
||||
<Button
|
||||
isPrimary
|
||||
isBusy={ isRequesting }
|
||||
onClick={ saveChanges }
|
||||
>
|
||||
{ __( 'Save settings', 'woocommerce-admin' ) }
|
||||
{ __( 'Save settings', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,7 @@ function CustomerEffortScoreTracks( {
|
|||
action,
|
||||
trackProps,
|
||||
label,
|
||||
onSubmitLabel = __( 'Thank you for your feedback!', 'woocommerce-admin' ),
|
||||
onSubmitLabel = __( 'Thank you for your feedback!', 'woocommerce' ),
|
||||
cesShownForActions,
|
||||
allowTracking,
|
||||
resolving,
|
||||
|
@ -126,7 +126,7 @@ function CustomerEffortScoreTracks( {
|
|||
<span
|
||||
style={ { height: 21, width: 21 } }
|
||||
role="img"
|
||||
aria-label={ __( 'Pencil icon', 'woocommerce-admin' ) }
|
||||
aria-label={ __( 'Pencil icon', 'woocommerce' ) }
|
||||
>
|
||||
✏️
|
||||
</span>
|
||||
|
|
|
@ -55,10 +55,7 @@ export function addCesSurvey(
|
|||
export function addCesSurveyForAnalytics() {
|
||||
return addCesSurvey(
|
||||
'analytics_filtered',
|
||||
__(
|
||||
'How easy was it to filter your store analytics?',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
__( 'How easy was it to filter your store analytics?', 'woocommerce' ),
|
||||
'woocommerce_page_wc-admin',
|
||||
'woocommerce_page_wc-admin'
|
||||
);
|
||||
|
@ -70,7 +67,7 @@ export function addCesSurveyForAnalytics() {
|
|||
export function addCesSurveyForCustomerSearch() {
|
||||
return addCesSurvey(
|
||||
'ces_search',
|
||||
__( 'How easy was it to use search?', 'woocommerce-admin' ),
|
||||
__( 'How easy was it to use search?', 'woocommerce' ),
|
||||
'woocommerce_page_wc-admin',
|
||||
'woocommerce_page_wc-admin',
|
||||
undefined,
|
||||
|
|
|
@ -103,7 +103,7 @@ class CartModal extends Component {
|
|||
if ( themeInfo ) {
|
||||
listItems.push( {
|
||||
title: sprintf(
|
||||
__( '%s — %s per year', 'woocommerce-admin' ),
|
||||
__( '%s — %s per year', 'woocommerce' ),
|
||||
themeInfo.title,
|
||||
decodeEntities( themeInfo.price )
|
||||
),
|
||||
|
@ -127,7 +127,7 @@ class CartModal extends Component {
|
|||
<Modal
|
||||
title={ __(
|
||||
'Would you like to add the following paid features to your store now?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
onRequestClose={ () => this.onClose() }
|
||||
className="woocommerce-cart-modal"
|
||||
|
@ -137,7 +137,7 @@ class CartModal extends Component {
|
|||
<p className="woocommerce-cart-modal__help-text">
|
||||
{ __(
|
||||
"You won't have access to this functionality until the extensions have been purchased and installed.",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</p>
|
||||
|
||||
|
@ -147,7 +147,7 @@ class CartModal extends Component {
|
|||
isBusy={ purchaseLaterButtonBusy }
|
||||
onClick={ () => this.onClickPurchaseLater() }
|
||||
>
|
||||
{ __( "I'll do it later", 'woocommerce-admin' ) }
|
||||
{ __( "I'll do it later", 'woocommerce' ) }
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
@ -155,7 +155,7 @@ class CartModal extends Component {
|
|||
isBusy={ purchaseNowButtonBusy }
|
||||
onClick={ () => this.onClickPurchaseNow() }
|
||||
>
|
||||
{ __( 'Buy now', 'woocommerce-admin' ) }
|
||||
{ __( 'Buy now', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
|
|
|
@ -74,7 +74,7 @@ export class Connect extends Component {
|
|||
isPrimary
|
||||
onClick={ () => window.location.reload() }
|
||||
>
|
||||
{ __( 'Retry', 'woocommerce-admin' ) }
|
||||
{ __( 'Retry', 'woocommerce' ) }
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
|
@ -83,17 +83,17 @@ export class Connect extends Component {
|
|||
isPrimary
|
||||
onClick={ this.connectJetpack }
|
||||
>
|
||||
{ __( 'Connect', 'woocommerce-admin' ) }
|
||||
{ __( 'Connect', 'woocommerce' ) }
|
||||
</Button>
|
||||
) }
|
||||
{ onSkip && (
|
||||
<Button onClick={ onSkip }>
|
||||
{ skipText || __( 'No thanks', 'woocommerce-admin' ) }
|
||||
{ skipText || __( 'No thanks', 'woocommerce' ) }
|
||||
</Button>
|
||||
) }
|
||||
{ onAbort && (
|
||||
<Button onClick={ onAbort }>
|
||||
{ abortText || __( 'Abort', 'woocommerce-admin' ) }
|
||||
{ abortText || __( 'Abort', 'woocommerce' ) }
|
||||
</Button>
|
||||
) }
|
||||
</Fragment>
|
||||
|
|
|
@ -69,31 +69,25 @@ export function getStoreAddressValidator( locale = {} ) {
|
|||
isAddressFieldRequired( 'address_1', locale ) &&
|
||||
! values.addressLine1.trim().length
|
||||
) {
|
||||
errors.addressLine1 = __(
|
||||
'Please add an address',
|
||||
'woocommerce-admin'
|
||||
);
|
||||
errors.addressLine1 = __( 'Please add an address', 'woocommerce' );
|
||||
}
|
||||
if ( ! values.countryState.trim().length ) {
|
||||
errors.countryState = __(
|
||||
'Please select a country / region',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
}
|
||||
if (
|
||||
isAddressFieldRequired( 'city', locale ) &&
|
||||
! values.city.trim().length
|
||||
) {
|
||||
errors.city = __( 'Please add a city', 'woocommerce-admin' );
|
||||
errors.city = __( 'Please add a city', 'woocommerce' );
|
||||
}
|
||||
if (
|
||||
isAddressFieldRequired( 'postcode', locale ) &&
|
||||
! values.postCode.trim().length
|
||||
) {
|
||||
errors.postCode = __(
|
||||
'Please add a post code',
|
||||
'woocommerce-admin'
|
||||
);
|
||||
errors.postCode = __( 'Please add a post code', 'woocommerce' );
|
||||
}
|
||||
|
||||
return errors;
|
||||
|
@ -390,7 +384,7 @@ export function StoreAddress( {
|
|||
<TextControl
|
||||
label={
|
||||
locale?.address_1?.label ||
|
||||
__( 'Address line 1', 'woocommerce-admin' )
|
||||
__( 'Address line 1', 'woocommerce' )
|
||||
}
|
||||
required={ isAddressFieldRequired( 'address_1', locale ) }
|
||||
autoComplete="address-line1"
|
||||
|
@ -402,7 +396,7 @@ export function StoreAddress( {
|
|||
<TextControl
|
||||
label={
|
||||
locale?.address_2?.label ||
|
||||
__( 'Address line 2 (optional)', 'woocommerce-admin' )
|
||||
__( 'Address line 2 (optional)', 'woocommerce' )
|
||||
}
|
||||
required={ isAddressFieldRequired( 'address_2', locale ) }
|
||||
autoComplete="address-line2"
|
||||
|
@ -411,7 +405,7 @@ export function StoreAddress( {
|
|||
) }
|
||||
|
||||
<SelectControl
|
||||
label={ __( 'Country / Region', 'woocommerce-admin' ) }
|
||||
label={ __( 'Country / Region', 'woocommerce' ) }
|
||||
required
|
||||
autoComplete="new-password" // disable autocomplete and autofill
|
||||
options={ countryStateOptions }
|
||||
|
@ -426,9 +420,7 @@ export function StoreAddress( {
|
|||
|
||||
{ ! locale?.city?.hidden && (
|
||||
<TextControl
|
||||
label={
|
||||
locale?.city?.label || __( 'City', 'woocommerce-admin' )
|
||||
}
|
||||
label={ locale?.city?.label || __( 'City', 'woocommerce' ) }
|
||||
required={ isAddressFieldRequired( 'city', locale ) }
|
||||
{ ...getInputProps( 'city' ) }
|
||||
autoComplete="address-level2"
|
||||
|
@ -439,7 +431,7 @@ export function StoreAddress( {
|
|||
<TextControl
|
||||
label={
|
||||
locale?.postcode?.label ||
|
||||
__( 'Post code', 'woocommerce-admin' )
|
||||
__( 'Post code', 'woocommerce' )
|
||||
}
|
||||
required={ isAddressFieldRequired( 'postcode', locale ) }
|
||||
autoComplete="postal-code"
|
||||
|
|
|
@ -190,7 +190,7 @@ const CustomizableDashboard = ( { defaultDateRange, path, query } ) => {
|
|||
renderToggle={ ( { onToggle, isOpen } ) => (
|
||||
<Button
|
||||
onClick={ onToggle }
|
||||
title={ __( 'Add more sections', 'woocommerce-admin' ) }
|
||||
title={ __( 'Add more sections', 'woocommerce' ) }
|
||||
aria-expanded={ isOpen }
|
||||
>
|
||||
<Icon icon={ plusCircleFilled } />
|
||||
|
@ -198,9 +198,7 @@ const CustomizableDashboard = ( { defaultDateRange, path, query } ) => {
|
|||
) }
|
||||
renderContent={ ( { onToggle } ) => (
|
||||
<>
|
||||
<H>
|
||||
{ __( 'Dashboard Sections', 'woocommerce-admin' ) }
|
||||
</H>
|
||||
<H>{ __( 'Dashboard Sections', 'woocommerce' ) }</H>
|
||||
<div className="woocommerce-dashboard-section__add-more-choices">
|
||||
{ hiddenSections.map( ( section ) => {
|
||||
return (
|
||||
|
@ -214,7 +212,7 @@ const CustomizableDashboard = ( { defaultDateRange, path, query } ) => {
|
|||
title={ sprintf(
|
||||
__(
|
||||
'Add %s section',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
section.title
|
||||
) }
|
||||
|
|
|
@ -75,7 +75,7 @@ class ChartBlock extends Component {
|
|||
{
|
||||
/* translators: %s is the chart type */
|
||||
sprintf(
|
||||
__( '%s Report', 'woocommerce-admin' ),
|
||||
__( '%s Report', 'woocommerce' ),
|
||||
selectedChart.label
|
||||
)
|
||||
}
|
||||
|
|
|
@ -27,67 +27,67 @@ const charts = {
|
|||
|
||||
const defaultCharts = [
|
||||
{
|
||||
label: __( 'Total sales', 'woocommerce-admin' ),
|
||||
label: __( 'Total sales', 'woocommerce' ),
|
||||
report: 'revenue',
|
||||
key: 'total_sales',
|
||||
},
|
||||
{
|
||||
label: __( 'Net sales', 'woocommerce-admin' ),
|
||||
label: __( 'Net sales', 'woocommerce' ),
|
||||
report: 'revenue',
|
||||
key: 'net_revenue',
|
||||
},
|
||||
{
|
||||
label: __( 'Orders', 'woocommerce-admin' ),
|
||||
label: __( 'Orders', 'woocommerce' ),
|
||||
report: 'orders',
|
||||
key: 'orders_count',
|
||||
},
|
||||
{
|
||||
label: __( 'Average order value', 'woocommerce-admin' ),
|
||||
label: __( 'Average order value', 'woocommerce' ),
|
||||
report: 'orders',
|
||||
key: 'avg_order_value',
|
||||
},
|
||||
{
|
||||
label: __( 'Items sold', 'woocommerce-admin' ),
|
||||
label: __( 'Items sold', 'woocommerce' ),
|
||||
report: 'products',
|
||||
key: 'items_sold',
|
||||
},
|
||||
{
|
||||
label: __( 'Returns', 'woocommerce-admin' ),
|
||||
label: __( 'Returns', 'woocommerce' ),
|
||||
report: 'revenue',
|
||||
key: 'refunds',
|
||||
},
|
||||
{
|
||||
label: __( 'Discounted orders', 'woocommerce-admin' ),
|
||||
label: __( 'Discounted orders', 'woocommerce' ),
|
||||
report: 'coupons',
|
||||
key: 'orders_count',
|
||||
},
|
||||
{
|
||||
label: __( 'Gross discounted', 'woocommerce-admin' ),
|
||||
label: __( 'Gross discounted', 'woocommerce' ),
|
||||
report: 'coupons',
|
||||
key: 'amount',
|
||||
},
|
||||
{
|
||||
label: __( 'Total tax', 'woocommerce-admin' ),
|
||||
label: __( 'Total tax', 'woocommerce' ),
|
||||
report: 'taxes',
|
||||
key: 'total_tax',
|
||||
},
|
||||
{
|
||||
label: __( 'Order tax', 'woocommerce-admin' ),
|
||||
label: __( 'Order tax', 'woocommerce' ),
|
||||
report: 'taxes',
|
||||
key: 'order_tax',
|
||||
},
|
||||
{
|
||||
label: __( 'Shipping tax', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping tax', 'woocommerce' ),
|
||||
report: 'taxes',
|
||||
key: 'shipping_tax',
|
||||
},
|
||||
{
|
||||
label: __( 'Shipping', 'woocommerce-admin' ),
|
||||
label: __( 'Shipping', 'woocommerce' ),
|
||||
report: 'revenue',
|
||||
key: 'shipping',
|
||||
},
|
||||
{
|
||||
label: __( 'Downloads', 'woocommerce-admin' ),
|
||||
label: __( 'Downloads', 'woocommerce' ),
|
||||
report: 'downloads',
|
||||
key: 'download_count',
|
||||
},
|
||||
|
|
|
@ -65,12 +65,12 @@ const renderIntervalSelector = ( {
|
|||
}
|
||||
|
||||
const intervalLabels = {
|
||||
hour: __( 'By hour', 'woocommerce-admin' ),
|
||||
day: __( 'By day', 'woocommerce-admin' ),
|
||||
week: __( 'By week', 'woocommerce-admin' ),
|
||||
month: __( 'By month', 'woocommerce-admin' ),
|
||||
quarter: __( 'By quarter', 'woocommerce-admin' ),
|
||||
year: __( 'By year', 'woocommerce-admin' ),
|
||||
hour: __( 'By hour', 'woocommerce' ),
|
||||
day: __( 'By day', 'woocommerce' ),
|
||||
week: __( 'By week', 'woocommerce' ),
|
||||
month: __( 'By month', 'woocommerce' ),
|
||||
quarter: __( 'By quarter', 'woocommerce' ),
|
||||
year: __( 'By year', 'woocommerce' ),
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -159,15 +159,10 @@ const DashboardCharts = ( props ) => {
|
|||
|
||||
const renderMenu = () => (
|
||||
<EllipsisMenu
|
||||
label={ __(
|
||||
'Choose which charts to display',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Choose which charts to display', 'woocommerce' ) }
|
||||
renderContent={ ( { onToggle } ) => (
|
||||
<Fragment>
|
||||
<MenuTitle>
|
||||
{ __( 'Charts', 'woocommerce-admin' ) }
|
||||
</MenuTitle>
|
||||
<MenuTitle>{ __( 'Charts', 'woocommerce' ) }</MenuTitle>
|
||||
{ renderChartToggles( {
|
||||
hiddenBlocks,
|
||||
onToggleHiddenBlock,
|
||||
|
@ -199,7 +194,7 @@ const DashboardCharts = ( props ) => {
|
|||
return (
|
||||
<div className="woocommerce-dashboard__dashboard-charts">
|
||||
<SectionHeader
|
||||
title={ title || __( 'Charts', 'woocommerce-admin' ) }
|
||||
title={ title || __( 'Charts', 'woocommerce' ) }
|
||||
menu={ renderMenu() }
|
||||
className={ 'has-interval-select' }
|
||||
>
|
||||
|
@ -223,7 +218,7 @@ const DashboardCharts = ( props ) => {
|
|||
query.chartType === 'line',
|
||||
}
|
||||
) }
|
||||
title={ __( 'Line chart', 'woocommerce-admin' ) }
|
||||
title={ __( 'Line chart', 'woocommerce' ) }
|
||||
aria-checked={ query.chartType === 'line' }
|
||||
role="menuitemradio"
|
||||
tabIndex={ query.chartType === 'line' ? 0 : -1 }
|
||||
|
@ -239,7 +234,7 @@ const DashboardCharts = ( props ) => {
|
|||
query.chartType === 'bar',
|
||||
}
|
||||
) }
|
||||
title={ __( 'Bar chart', 'woocommerce-admin' ) }
|
||||
title={ __( 'Bar chart', 'woocommerce' ) }
|
||||
aria-checked={ query.chartType === 'bar' }
|
||||
role="menuitemradio"
|
||||
tabIndex={ query.chartType === 'bar' ? 0 : -1 }
|
||||
|
|
|
@ -63,7 +63,7 @@ export default applyFilters( DEFAULT_SECTIONS_FILTER, [
|
|||
{
|
||||
key: 'store-performance',
|
||||
component: StorePerformance,
|
||||
title: __( 'Performance', 'woocommerce-admin' ),
|
||||
title: __( 'Performance', 'woocommerce' ),
|
||||
isVisible: true,
|
||||
icon: arrowRight,
|
||||
hiddenBlocks: [
|
||||
|
@ -82,7 +82,7 @@ export default applyFilters( DEFAULT_SECTIONS_FILTER, [
|
|||
{
|
||||
key: 'charts',
|
||||
component: DashboardCharts,
|
||||
title: __( 'Charts', 'woocommerce-admin' ),
|
||||
title: __( 'Charts', 'woocommerce' ),
|
||||
isVisible: true,
|
||||
icon: chartBar,
|
||||
hiddenBlocks: [
|
||||
|
@ -103,7 +103,7 @@ export default applyFilters( DEFAULT_SECTIONS_FILTER, [
|
|||
{
|
||||
key: 'leaderboards',
|
||||
component: Leaderboards,
|
||||
title: __( 'Leaderboards', 'woocommerce-admin' ),
|
||||
title: __( 'Leaderboards', 'woocommerce' ),
|
||||
isVisible: true,
|
||||
icon: <ListOrdered />,
|
||||
hiddenBlocks: [ 'coupons', 'customers' ],
|
||||
|
|
|
@ -110,12 +110,12 @@ const Leaderboards = ( props ) => {
|
|||
<EllipsisMenu
|
||||
label={ __(
|
||||
'Choose which leaderboards to display and other settings',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
renderContent={ ( { onToggle } ) => (
|
||||
<Fragment>
|
||||
<MenuTitle>
|
||||
{ __( 'Leaderboards', 'woocommerce-admin' ) }
|
||||
{ __( 'Leaderboards', 'woocommerce' ) }
|
||||
</MenuTitle>
|
||||
{ renderLeaderboardToggles( {
|
||||
allLeaderboards,
|
||||
|
@ -124,7 +124,7 @@ const Leaderboards = ( props ) => {
|
|||
} ) }
|
||||
<SelectControl
|
||||
className="woocommerce-dashboard__dashboard-leaderboards__select"
|
||||
label={ __( 'Rows per table', 'woocommerce-admin' ) }
|
||||
label={ __( 'Rows per table', 'woocommerce' ) }
|
||||
value={ rowsPerTable }
|
||||
options={ Array.from( { length: 20 }, ( v, key ) => ( {
|
||||
v: key + 1,
|
||||
|
@ -151,7 +151,7 @@ const Leaderboards = ( props ) => {
|
|||
<Fragment>
|
||||
<div className="woocommerce-dashboard__dashboard-leaderboards">
|
||||
<SectionHeader
|
||||
title={ title || __( 'Leaderboards', 'woocommerce-admin' ) }
|
||||
title={ title || __( 'Leaderboards', 'woocommerce' ) }
|
||||
menu={ renderMenu() }
|
||||
/>
|
||||
<div className="woocommerce-dashboard__columns">
|
||||
|
|
|
@ -44,7 +44,7 @@ class SectionControls extends Component {
|
|||
<Fragment>
|
||||
<div className="woocommerce-ellipsis-menu__item">
|
||||
<TextControl
|
||||
label={ __( 'Section title', 'woocommerce-admin' ) }
|
||||
label={ __( 'Section title', 'woocommerce' ) }
|
||||
onBlur={ onTitleBlur }
|
||||
onChange={ onTitleChange }
|
||||
required
|
||||
|
@ -60,7 +60,7 @@ class SectionControls extends Component {
|
|||
size={ 20 }
|
||||
className="icon-control"
|
||||
/>
|
||||
{ __( 'Move up', 'woocommerce-admin' ) }
|
||||
{ __( 'Move up', 'woocommerce' ) }
|
||||
</MenuItem>
|
||||
) }
|
||||
{ ! isLast && (
|
||||
|
@ -71,7 +71,7 @@ class SectionControls extends Component {
|
|||
label={ __( 'Move down' ) }
|
||||
className="icon-control"
|
||||
/>
|
||||
{ __( 'Move down', 'woocommerce-admin' ) }
|
||||
{ __( 'Move down', 'woocommerce' ) }
|
||||
</MenuItem>
|
||||
) }
|
||||
<MenuItem isClickable onInvoke={ onRemove }>
|
||||
|
@ -81,7 +81,7 @@ class SectionControls extends Component {
|
|||
label={ __( 'Remove block' ) }
|
||||
className="icon-control"
|
||||
/>
|
||||
{ __( 'Remove section', 'woocommerce-admin' ) }
|
||||
{ __( 'Remove section', 'woocommerce' ) }
|
||||
</MenuItem>
|
||||
</div>
|
||||
</Fragment>
|
||||
|
|
|
@ -52,12 +52,12 @@ class StorePerformance extends Component {
|
|||
<EllipsisMenu
|
||||
label={ __(
|
||||
'Choose which analytics to display and the section name',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
renderContent={ ( { onToggle } ) => (
|
||||
<Fragment>
|
||||
<MenuTitle>
|
||||
{ __( 'Display stats:', 'woocommerce-admin' ) }
|
||||
{ __( 'Display stats:', 'woocommerce' ) }
|
||||
</MenuTitle>
|
||||
{ indicators.map( ( indicator, i ) => {
|
||||
const checked = ! hiddenBlocks.includes(
|
||||
|
@ -126,8 +126,8 @@ class StorePerformance extends Component {
|
|||
const { compare } = getDateParamsFromQuery( query, defaultDateRange );
|
||||
const prevLabel =
|
||||
compare === 'previous_period'
|
||||
? __( 'Previous period:', 'woocommerce-admin' )
|
||||
: __( 'Previous year:', 'woocommerce-admin' );
|
||||
? __( 'Previous period:', 'woocommerce' )
|
||||
: __( 'Previous year:', 'woocommerce' );
|
||||
const { formatAmount, getCurrencyConfig } = this.context;
|
||||
const currency = getCurrencyConfig();
|
||||
return (
|
||||
|
@ -177,9 +177,7 @@ class StorePerformance extends Component {
|
|||
return (
|
||||
<Fragment>
|
||||
<SectionHeader
|
||||
title={
|
||||
title || __( 'Store Performance', 'woocommerce-admin' )
|
||||
}
|
||||
title={ title || __( 'Store Performance', 'woocommerce' ) }
|
||||
menu={ this.renderMenu() }
|
||||
/>
|
||||
{ userIndicators.length > 0 && (
|
||||
|
|
|
@ -80,7 +80,7 @@ export const Header = ( { sections, isEmbedded = false, query } ) => {
|
|||
/* translators: 1: document title. 2: page title */
|
||||
__(
|
||||
'%1$s ‹ %2$s — WooCommerce',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
documentTitle,
|
||||
siteTitle
|
||||
|
|
|
@ -49,10 +49,7 @@ const renderEmptyCard = () => {
|
|||
🎉
|
||||
</span>
|
||||
<H id="woocommerce-order-empty-message">
|
||||
{ __(
|
||||
'You’ve fulfilled all your orders',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
{ __( 'You’ve fulfilled all your orders', 'woocommerce' ) }
|
||||
</H>
|
||||
</ActivityCard>
|
||||
<Link
|
||||
|
@ -61,7 +58,7 @@ const renderEmptyCard = () => {
|
|||
className="woocommerce-layout__activity-panel-outbound-link woocommerce-layout__activity-panel-empty"
|
||||
type="wp-admin"
|
||||
>
|
||||
{ __( 'Manage all orders', 'woocommerce-admin' ) }
|
||||
{ __( 'Manage all orders', 'woocommerce' ) }
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
|
@ -104,7 +101,7 @@ function renderOrders( orders ) {
|
|||
mixedString: sprintf(
|
||||
__(
|
||||
'{{orderLink}}Order #%(orderNumber)s{{/orderLink}} %(customerString)s',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
orderNumber,
|
||||
|
@ -178,7 +175,7 @@ function renderOrders( orders ) {
|
|||
'%d product',
|
||||
'%d products',
|
||||
productsCount,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
productsCount
|
||||
) }
|
||||
|
@ -203,7 +200,7 @@ function renderOrders( orders ) {
|
|||
onClick={ () => recordOrderEvent( 'orders_manage' ) }
|
||||
type="wp-admin"
|
||||
>
|
||||
{ __( 'Manage all orders', 'woocommerce-admin' ) }
|
||||
{ __( 'Manage all orders', 'woocommerce' ) }
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
|
@ -278,9 +275,9 @@ function OrdersPanel( { unreadOrdersCount, orderStatuses } ) {
|
|||
title={ __(
|
||||
"You currently don't have any actionable statuses. " +
|
||||
'To display orders here, select orders that require further review in settings.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
actionLabel={ __( 'Settings', 'woocommerce-admin' ) }
|
||||
actionLabel={ __( 'Settings', 'woocommerce' ) }
|
||||
actionURL={ getAdminLink(
|
||||
'admin.php?page=wc-admin&path=/analytics/settings'
|
||||
) }
|
||||
|
@ -290,9 +287,9 @@ function OrdersPanel( { unreadOrdersCount, orderStatuses } ) {
|
|||
|
||||
const title = __(
|
||||
'There was an error getting your orders. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
const actionLabel = __( 'Reload', 'woocommerce-admin' );
|
||||
const actionLabel = __( 'Reload', 'woocommerce' );
|
||||
const actionCallback = () => {
|
||||
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
||||
window.location.reload();
|
||||
|
|
|
@ -38,7 +38,7 @@ export function getAllPanels( {
|
|||
orderStatuses={ orderStatuses }
|
||||
/>
|
||||
),
|
||||
title: __( 'Orders', 'woocommerce-admin' ),
|
||||
title: __( 'Orders', 'woocommerce' ),
|
||||
},
|
||||
totalOrderCount > 0 &&
|
||||
publishedProductCount > 0 &&
|
||||
|
@ -53,7 +53,7 @@ export function getAllPanels( {
|
|||
lowStockProductsCount={ lowStockProductsCount }
|
||||
/>
|
||||
),
|
||||
title: __( 'Stock', 'woocommerce-admin' ),
|
||||
title: __( 'Stock', 'woocommerce' ),
|
||||
},
|
||||
publishedProductCount > 0 &&
|
||||
unapprovedReviewsCount > 0 &&
|
||||
|
@ -68,7 +68,7 @@ export function getAllPanels( {
|
|||
hasUnapprovedReviews={ unapprovedReviewsCount > 0 }
|
||||
/>
|
||||
),
|
||||
title: __( 'Reviews', 'woocommerce-admin' ),
|
||||
title: __( 'Reviews', 'woocommerce' ),
|
||||
},
|
||||
// Add another panel row here
|
||||
].filter( Boolean );
|
||||
|
|
|
@ -61,14 +61,11 @@ class ReviewsPanel extends Component {
|
|||
clearReviewsCache();
|
||||
createNotice(
|
||||
'success',
|
||||
__(
|
||||
'Review successfully deleted.',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
__( 'Review successfully deleted.', 'woocommerce' ),
|
||||
{
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce-admin' ),
|
||||
label: __( 'Undo', 'woocommerce' ),
|
||||
onClick: () => {
|
||||
updateReview(
|
||||
reviewId,
|
||||
|
@ -88,10 +85,7 @@ class ReviewsPanel extends Component {
|
|||
.catch( () => {
|
||||
createNotice(
|
||||
'error',
|
||||
__(
|
||||
'Review could not be deleted.',
|
||||
'woocommerce-admin'
|
||||
)
|
||||
__( 'Review could not be deleted.', 'woocommerce' )
|
||||
);
|
||||
} );
|
||||
}
|
||||
|
@ -105,14 +99,11 @@ class ReviewsPanel extends Component {
|
|||
clearReviewsCache();
|
||||
createNotice(
|
||||
'success',
|
||||
__(
|
||||
'Review successfully updated.',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
__( 'Review successfully updated.', 'woocommerce' ),
|
||||
{
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce-admin' ),
|
||||
label: __( 'Undo', 'woocommerce' ),
|
||||
onClick: () => {
|
||||
updateReview(
|
||||
reviewId,
|
||||
|
@ -132,10 +123,7 @@ class ReviewsPanel extends Component {
|
|||
.catch( () => {
|
||||
createNotice(
|
||||
'error',
|
||||
__(
|
||||
'Review could not be updated.',
|
||||
'woocommerce-admin'
|
||||
)
|
||||
__( 'Review could not be updated.', 'woocommerce' )
|
||||
);
|
||||
} );
|
||||
}
|
||||
|
@ -168,7 +156,7 @@ class ReviewsPanel extends Component {
|
|||
mixedString: sprintf(
|
||||
__(
|
||||
'{{authorLink}}%s{{/authorLink}}{{verifiedCustomerIcon/}} reviewed {{productLink}}%s{{/productLink}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
review.reviewer,
|
||||
product.name
|
||||
|
@ -193,9 +181,7 @@ class ReviewsPanel extends Component {
|
|||
),
|
||||
verifiedCustomerIcon: review.verified ? (
|
||||
<span className="woocommerce-review-activity-card__verified">
|
||||
<Tooltip
|
||||
text={ __( 'Verified owner', 'woocommerce-admin' ) }
|
||||
>
|
||||
<Tooltip text={ __( 'Verified owner', 'woocommerce' ) }>
|
||||
<span>
|
||||
<CheckmarkCircleIcon />
|
||||
</span>
|
||||
|
@ -254,7 +240,7 @@ class ReviewsPanel extends Component {
|
|||
);
|
||||
} }
|
||||
>
|
||||
{ __( 'Approve', 'woocommerce-admin' ) }
|
||||
{ __( 'Approve', 'woocommerce' ) }
|
||||
</Button>,
|
||||
<Button
|
||||
key="spam-action"
|
||||
|
@ -264,7 +250,7 @@ class ReviewsPanel extends Component {
|
|||
this.updateReviewStatus( review.id, 'spam', review.status );
|
||||
} }
|
||||
>
|
||||
{ __( 'Mark as spam', 'woocommerce-admin' ) }
|
||||
{ __( 'Mark as spam', 'woocommerce' ) }
|
||||
</Button>,
|
||||
<Button
|
||||
key="delete-action"
|
||||
|
@ -275,7 +261,7 @@ class ReviewsPanel extends Component {
|
|||
this.deleteReview( review.id );
|
||||
} }
|
||||
>
|
||||
{ __( 'Delete', 'woocommerce-admin' ) }
|
||||
{ __( 'Delete', 'woocommerce' ) }
|
||||
</Button>,
|
||||
];
|
||||
|
||||
|
@ -314,7 +300,7 @@ class ReviewsPanel extends Component {
|
|||
className="woocommerce-layout__activity-panel-outbound-link woocommerce-layout__activity-panel-empty"
|
||||
type="wp-admin"
|
||||
>
|
||||
{ __( 'Manage all reviews', 'woocommerce-admin' ) }
|
||||
{ __( 'Manage all reviews', 'woocommerce' ) }
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
|
@ -326,9 +312,9 @@ class ReviewsPanel extends Component {
|
|||
if ( isError ) {
|
||||
const title = __(
|
||||
'There was an error getting your reviews. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
const actionLabel = __( 'Reload', 'woocommerce-admin' );
|
||||
const actionLabel = __( 'Reload', 'woocommerce' );
|
||||
const actionCallback = () => {
|
||||
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
||||
window.location.reload();
|
||||
|
|
|
@ -93,13 +93,13 @@ export class ProductStockCard extends Component {
|
|||
'success',
|
||||
sprintf(
|
||||
/* translators: %s = name of the product having stock updated */
|
||||
__( '%s stock updated', 'woocommerce-admin' ),
|
||||
__( '%s stock updated', 'woocommerce' ),
|
||||
product.name
|
||||
),
|
||||
{
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce-admin' ),
|
||||
label: __( 'Undo', 'woocommerce' ),
|
||||
onClick: () => {
|
||||
updateProductStock(
|
||||
product,
|
||||
|
@ -117,7 +117,7 @@ export class ProductStockCard extends Component {
|
|||
'error',
|
||||
sprintf(
|
||||
/* translators: %s = name of the product having stock updated */
|
||||
__( '%s stock could not be updated', 'woocommerce-admin' ),
|
||||
__( '%s stock could not be updated', 'woocommerce' ),
|
||||
product.name
|
||||
)
|
||||
);
|
||||
|
@ -134,17 +134,17 @@ export class ProductStockCard extends Component {
|
|||
if ( editing ) {
|
||||
return [
|
||||
<Button key="save" type="submit" isPrimary>
|
||||
{ __( 'Save', 'woocommerce-admin' ) }
|
||||
{ __( 'Save', 'woocommerce' ) }
|
||||
</Button>,
|
||||
<Button key="cancel" type="reset">
|
||||
{ __( 'Cancel', 'woocommerce-admin' ) }
|
||||
{ __( 'Cancel', 'woocommerce' ) }
|
||||
</Button>,
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
<Button key="update" isSecondary onClick={ this.beginEdit }>
|
||||
{ __( 'Update stock', 'woocommerce-admin' ) }
|
||||
{ __( 'Update stock', 'woocommerce' ) }
|
||||
</Button>,
|
||||
];
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ export class ProductStockCard extends Component {
|
|||
} }
|
||||
/>
|
||||
</BaseControl>
|
||||
<span>{ __( 'in stock', 'woocommerce-admin' ) }</span>
|
||||
<span>{ __( 'in stock', 'woocommerce' ) }</span>
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ export class ProductStockCard extends Component {
|
|||
>
|
||||
{ sprintf(
|
||||
/* translators: %d = stock quantity of the product being updated */
|
||||
__( '%d in stock', 'woocommerce-admin' ),
|
||||
__( '%d in stock', 'woocommerce' ),
|
||||
product.stock_quantity
|
||||
) }
|
||||
</span>
|
||||
|
@ -205,7 +205,7 @@ export class ProductStockCard extends Component {
|
|||
const lastOrderDate = product.last_order_date
|
||||
? sprintf(
|
||||
/* translators: %s = time since last product order. e.g.: "10 minutes ago" - translated. */
|
||||
__( 'Last ordered %s', 'woocommerce-admin' ),
|
||||
__( 'Last ordered %s', 'woocommerce' ),
|
||||
moment.utc( product.last_order_date ).fromNow()
|
||||
)
|
||||
: null;
|
||||
|
|
|
@ -90,9 +90,9 @@ export class StockPanel extends Component {
|
|||
if ( isError ) {
|
||||
const title = __(
|
||||
'There was an error getting your low stock products. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
const actionLabel = __( 'Reload', 'woocommerce-admin' );
|
||||
const actionLabel = __( 'Reload', 'woocommerce' );
|
||||
const actionCallback = () => {
|
||||
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
||||
window.location.reload();
|
||||
|
|
|
@ -145,11 +145,11 @@ export const Layout = ( {
|
|||
className="your-store-today"
|
||||
title={ __(
|
||||
'Your store today',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
subtitle={ __(
|
||||
"To do's, tips, and insights for your business",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
/>
|
||||
) }
|
||||
|
|
|
@ -67,7 +67,7 @@ export const StatsOverview = () => {
|
|||
|
||||
const HeaderText = (
|
||||
<Text variant="title.small" size="20" lineHeight="28px">
|
||||
{ __( 'Stats overview', 'woocommerce-admin' ) }
|
||||
{ __( 'Stats overview', 'woocommerce' ) }
|
||||
</Text>
|
||||
);
|
||||
|
||||
|
@ -86,12 +86,12 @@ export const StatsOverview = () => {
|
|||
<EllipsisMenu
|
||||
label={ __(
|
||||
'Choose which values to display',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
renderContent={ () => (
|
||||
<Fragment>
|
||||
<MenuTitle>
|
||||
{ __( 'Display stats:', 'woocommerce-admin' ) }
|
||||
{ __( 'Display stats:', 'woocommerce' ) }
|
||||
</MenuTitle>
|
||||
{ stats.map( ( item ) => {
|
||||
const checked = ! hiddenStats.includes(
|
||||
|
@ -125,15 +125,15 @@ export const StatsOverview = () => {
|
|||
} }
|
||||
tabs={ [
|
||||
{
|
||||
title: __( 'Today', 'woocommerce-admin' ),
|
||||
title: __( 'Today', 'woocommerce' ),
|
||||
name: 'today',
|
||||
},
|
||||
{
|
||||
title: __( 'Week to date', 'woocommerce-admin' ),
|
||||
title: __( 'Week to date', 'woocommerce' ),
|
||||
name: 'week',
|
||||
},
|
||||
{
|
||||
title: __( 'Month to date', 'woocommerce-admin' ),
|
||||
title: __( 'Month to date', 'woocommerce' ),
|
||||
name: 'month',
|
||||
},
|
||||
] }
|
||||
|
@ -165,7 +165,7 @@ export const StatsOverview = () => {
|
|||
} );
|
||||
} }
|
||||
>
|
||||
{ __( 'View detailed stats', 'woocommerce-admin' ) }
|
||||
{ __( 'View detailed stats', 'woocommerce' ) }
|
||||
</Link>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
|
|
@ -17,9 +17,9 @@ import { createErrorNotice } from '@woocommerce/data/src/plugins/actions';
|
|||
const getJetpackInstallText = ( jetpackInstallState ) => {
|
||||
return (
|
||||
{
|
||||
unavailable: __( 'Get Jetpack', 'woocommerce-admin' ),
|
||||
installed: __( 'Activate Jetpack', 'woocommerce-admin' ),
|
||||
activated: __( 'Connect Jetpack', 'woocommerce-admin' ),
|
||||
unavailable: __( 'Get Jetpack', 'woocommerce' ),
|
||||
installed: __( 'Activate Jetpack', 'woocommerce' ),
|
||||
activated: __( 'Connect Jetpack', 'woocommerce' ),
|
||||
}[ jetpackInstallState ] || ''
|
||||
);
|
||||
};
|
||||
|
@ -33,18 +33,13 @@ export const JetpackCTA = ( {
|
|||
return (
|
||||
<article className="woocommerce-stats-overview__install-jetpack-promo">
|
||||
<div className="woocommerce-stats-overview__install-jetpack-promo__content">
|
||||
<H>
|
||||
{ __(
|
||||
'Get traffic stats with Jetpack',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
</H>
|
||||
<H>{ __( 'Get traffic stats with Jetpack', 'woocommerce' ) }</H>
|
||||
<p>
|
||||
{ __(
|
||||
'Keep an eye on your views and visitors metrics with ' +
|
||||
'Jetpack. Requires Jetpack plugin and a WordPress.com ' +
|
||||
'account.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</p>
|
||||
</div>
|
||||
|
@ -69,7 +64,7 @@ export const JetpackCTA = ( {
|
|||
disabled={ isBusy }
|
||||
isBusy={ isBusy }
|
||||
>
|
||||
{ __( 'No thanks', 'woocommerce-admin' ) }
|
||||
{ __( 'No thanks', 'woocommerce' ) }
|
||||
</Button>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
@ -72,10 +72,7 @@ export const StatsList = ( {
|
|||
hrefType={ reportUrlType }
|
||||
label={ item.label }
|
||||
value={ primaryValue }
|
||||
prevLabel={ __(
|
||||
'Previous period:',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
prevLabel={ __( 'Previous period:', 'woocommerce' ) }
|
||||
prevValue={ secondaryValue }
|
||||
delta={ delta }
|
||||
onLinkClickCallback={ () => {
|
||||
|
|
|
@ -22,12 +22,12 @@ const page = {
|
|||
<PageContent
|
||||
title={ __(
|
||||
'Welcome to your new store management experience',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
body={ interpolateComponents( {
|
||||
mixedString: __(
|
||||
"We've designed your navigation and home screen to help you focus on the things that matter most in managing your online store. {{link}}Learn more{{/link}} about these changes – or explore on your own.",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
components: {
|
||||
link: (
|
||||
|
@ -70,7 +70,7 @@ export default function WelcomeFromCalypsoModal( { onClose } ) {
|
|||
recordEvent( 'welcome_from_calypso_modal_close' );
|
||||
} }
|
||||
className={ guideClassNames }
|
||||
finishButtonText={ __( "Let's go", 'woocommerce-admin' ) }
|
||||
finishButtonText={ __( "Let's go", 'woocommerce' ) }
|
||||
pages={ [ page ] }
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -22,11 +22,11 @@ const pages = [
|
|||
<PageContent
|
||||
title={ __(
|
||||
'Welcome to your WooCommerce store’s online HQ!',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
body={ __(
|
||||
"Here's where you’ll find setup suggestions, tips and tools, and key data on your store’s performance and earnings — all the basics for store management and growth.",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
/>
|
||||
),
|
||||
|
@ -37,11 +37,11 @@ const pages = [
|
|||
<PageContent
|
||||
title={ __(
|
||||
'A personalized inbox full of relevant advice',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
body={ __(
|
||||
'Check your inbox for helpful growth tips tailored to your store and notifications about key traffic and sales milestones. We look forward to celebrating them with you!',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
/>
|
||||
),
|
||||
|
@ -52,11 +52,11 @@ const pages = [
|
|||
<PageContent
|
||||
title={ __(
|
||||
'Good data leads to smart business decisions',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
body={ __(
|
||||
'Monitor your stats to improve performance, increase sales, and track your progress toward revenue goals. The more you know, the better you can serve your customers and grow your store.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
/>
|
||||
),
|
||||
|
@ -80,7 +80,7 @@ export const WelcomeModal = ( { onClose } ) => {
|
|||
recordEvent( 'task_list_welcome_modal_close' );
|
||||
} }
|
||||
className={ 'woocommerce__welcome-modal' }
|
||||
finishButtonText={ __( "Let's go", 'woocommerce-admin' ) }
|
||||
finishButtonText={ __( "Let's go", 'woocommerce' ) }
|
||||
pages={ pages }
|
||||
/>
|
||||
) }
|
||||
|
|
|
@ -22,11 +22,11 @@ const DismissAllModal = ( { onClose } ) => {
|
|||
} );
|
||||
createNotice(
|
||||
'success',
|
||||
__( 'All messages dismissed', 'woocommerce-admin' ),
|
||||
__( 'All messages dismissed', 'woocommerce' ),
|
||||
{
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce-admin' ),
|
||||
label: __( 'Undo', 'woocommerce' ),
|
||||
onClick: () => {
|
||||
batchUpdateNotes(
|
||||
notesRemoved.map( ( note ) => note.id ),
|
||||
|
@ -42,7 +42,7 @@ const DismissAllModal = ( { onClose } ) => {
|
|||
} catch ( e ) {
|
||||
createNotice(
|
||||
'error',
|
||||
__( 'Messages could not be dismissed', 'woocommerce-admin' )
|
||||
__( 'Messages could not be dismissed', 'woocommerce' )
|
||||
);
|
||||
onClose();
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ const DismissAllModal = ( { onClose } ) => {
|
|||
return (
|
||||
<>
|
||||
<Modal
|
||||
title={ __( 'Dismiss all messages', 'woocommerce-admin' ) }
|
||||
title={ __( 'Dismiss all messages', 'woocommerce' ) }
|
||||
className="woocommerce-inbox-dismiss-all-modal"
|
||||
onRequestClose={ onClose }
|
||||
>
|
||||
|
@ -58,12 +58,12 @@ const DismissAllModal = ( { onClose } ) => {
|
|||
<div className="woocommerce-usage-modal__message">
|
||||
{ __(
|
||||
'Are you sure? Inbox messages will be dismissed forever.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</div>
|
||||
<div className="woocommerce-usage-modal__actions">
|
||||
<Button onClick={ onClose }>
|
||||
{ __( 'Cancel', 'woocommerce-admin' ) }
|
||||
{ __( 'Cancel', 'woocommerce' ) }
|
||||
</Button>
|
||||
<Button
|
||||
isPrimary
|
||||
|
@ -72,7 +72,7 @@ const DismissAllModal = ( { onClose } ) => {
|
|||
onClose();
|
||||
} }
|
||||
>
|
||||
{ __( 'Yes, dismiss all', 'woocommerce-admin' ) }
|
||||
{ __( 'Yes, dismiss all', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -33,13 +33,13 @@ import './index.scss';
|
|||
const renderEmptyCard = () => (
|
||||
<ActivityCard
|
||||
className="woocommerce-empty-activity-card"
|
||||
title={ __( 'Your inbox is empty', 'woocommerce-admin' ) }
|
||||
title={ __( 'Your inbox is empty', 'woocommerce' ) }
|
||||
icon={ false }
|
||||
>
|
||||
{ __(
|
||||
'As things begin to happen in your store your inbox will start to fill up. ' +
|
||||
"You'll see things like achievements, new feature announcements, extension recommendations and more!",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</ActivityCard>
|
||||
);
|
||||
|
@ -97,15 +97,12 @@ const renderNotes = ( {
|
|||
<CardHeader size="medium">
|
||||
<div className="wooocommerce-inbox-card__header">
|
||||
<Text size="20" lineHeight="28px" variant="title.small">
|
||||
{ __( 'Inbox', 'woocommerce-admin' ) }
|
||||
{ __( 'Inbox', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Badge count={ notesArray.length } />
|
||||
</div>
|
||||
<EllipsisMenu
|
||||
label={ __(
|
||||
'Inbox Notes Options',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Inbox Notes Options', 'woocommerce' ) }
|
||||
renderContent={ ( { onToggle } ) => (
|
||||
<div className="woocommerce-inbox-card__section-controls">
|
||||
<Button
|
||||
|
@ -114,7 +111,7 @@ const renderNotes = ( {
|
|||
onToggle();
|
||||
} }
|
||||
>
|
||||
{ __( 'Dismiss all', 'woocommerce-admin' ) }
|
||||
{ __( 'Dismiss all', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
) }
|
||||
|
@ -247,22 +244,18 @@ const InboxPanel = ( { showHeader = true } ) => {
|
|||
const noteId = note.id;
|
||||
try {
|
||||
removeNote( noteId );
|
||||
createNotice(
|
||||
'success',
|
||||
__( 'Message dismissed', 'woocommerce-admin' ),
|
||||
{
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce-admin' ),
|
||||
onClick: () => {
|
||||
updateNote( noteId, {
|
||||
is_deleted: 0,
|
||||
} );
|
||||
},
|
||||
createNotice( 'success', __( 'Message dismissed', 'woocommerce' ), {
|
||||
actions: [
|
||||
{
|
||||
label: __( 'Undo', 'woocommerce' ),
|
||||
onClick: () => {
|
||||
updateNote( noteId, {
|
||||
is_deleted: 0,
|
||||
} );
|
||||
},
|
||||
],
|
||||
}
|
||||
);
|
||||
},
|
||||
],
|
||||
} );
|
||||
} catch ( e ) {
|
||||
createNotice(
|
||||
'error',
|
||||
|
@ -270,7 +263,7 @@ const InboxPanel = ( { showHeader = true } ) => {
|
|||
'Message could not be dismissed',
|
||||
'Messages could not be dismissed',
|
||||
1,
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -279,9 +272,9 @@ const InboxPanel = ( { showHeader = true } ) => {
|
|||
if ( isError ) {
|
||||
const title = __(
|
||||
'There was an error getting your inbox. Please try again.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
const actionLabel = __( 'Reload', 'woocommerce-admin' );
|
||||
const actionLabel = __( 'Reload', 'woocommerce' );
|
||||
const actionCallback = () => {
|
||||
// @todo Add tracking for how often an error is displayed, and the reload action is clicked.
|
||||
window.location.reload();
|
||||
|
|
|
@ -13,7 +13,7 @@ const NoMatch: React.FC = () => {
|
|||
<Text>
|
||||
{ __(
|
||||
'Sorry, you are not allowed to access this page.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Text>
|
||||
</CardBody>
|
||||
|
|
|
@ -67,10 +67,7 @@ export const getPages = () => {
|
|||
pages.push( {
|
||||
container: Homescreen,
|
||||
path: '/',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
__( 'Home', 'woocommerce-admin' ),
|
||||
],
|
||||
breadcrumbs: [ ...initialBreadcrumbs, __( 'Home', 'woocommerce' ) ],
|
||||
wpOpenMenu: 'toplevel_page_woocommerce',
|
||||
navArgs: {
|
||||
id: 'woocommerce-home',
|
||||
|
@ -84,11 +81,8 @@ export const getPages = () => {
|
|||
path: '/analytics/overview',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
[
|
||||
'/analytics/overview',
|
||||
__( 'Analytics', 'woocommerce-admin' ),
|
||||
],
|
||||
__( 'Overview', 'woocommerce-admin' ),
|
||||
[ '/analytics/overview', __( 'Analytics', 'woocommerce' ) ],
|
||||
__( 'Overview', 'woocommerce' ),
|
||||
],
|
||||
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
||||
navArgs: {
|
||||
|
@ -101,11 +95,8 @@ export const getPages = () => {
|
|||
path: '/analytics/settings',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
[
|
||||
'/analytics/revenue',
|
||||
__( 'Analytics', 'woocommerce-admin' ),
|
||||
],
|
||||
__( 'Settings', 'woocommerce-admin' ),
|
||||
[ '/analytics/revenue', __( 'Analytics', 'woocommerce' ) ],
|
||||
__( 'Settings', 'woocommerce' ),
|
||||
],
|
||||
wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
|
||||
navArgs: {
|
||||
|
@ -118,7 +109,7 @@ export const getPages = () => {
|
|||
path: '/customers',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
__( 'Customers', 'woocommerce-admin' ),
|
||||
__( 'Customers', 'woocommerce' ),
|
||||
],
|
||||
wpOpenMenu: 'toplevel_page_woocommerce',
|
||||
navArgs: {
|
||||
|
@ -138,10 +129,7 @@ export const getPages = () => {
|
|||
}
|
||||
return [
|
||||
...initialBreadcrumbs,
|
||||
[
|
||||
'/analytics/revenue',
|
||||
__( 'Analytics', 'woocommerce-admin' ),
|
||||
],
|
||||
[ '/analytics/revenue', __( 'Analytics', 'woocommerce' ) ],
|
||||
report.title,
|
||||
];
|
||||
},
|
||||
|
@ -156,8 +144,8 @@ export const getPages = () => {
|
|||
path: '/marketing',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
[ '/marketing', __( 'Marketing', 'woocommerce-admin' ) ],
|
||||
__( 'Overview', 'woocommerce-admin' ),
|
||||
[ '/marketing', __( 'Marketing', 'woocommerce' ) ],
|
||||
__( 'Overview', 'woocommerce' ),
|
||||
],
|
||||
wpOpenMenu: 'toplevel_page_woocommerce-marketing',
|
||||
navArgs: {
|
||||
|
@ -173,7 +161,7 @@ export const getPages = () => {
|
|||
path: '/setup-wizard',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
__( 'Setup Wizard', 'woocommerce-admin' ),
|
||||
__( 'Setup Wizard', 'woocommerce' ),
|
||||
],
|
||||
capability: 'manage_woocommerce',
|
||||
} );
|
||||
|
@ -198,7 +186,7 @@ export const getPages = () => {
|
|||
: `/settings/${
|
||||
Object.keys( settingsPages )[ 0 ]
|
||||
}`,
|
||||
__( 'Settings', 'woocommerce-admin' ),
|
||||
__( 'Settings', 'woocommerce' ),
|
||||
],
|
||||
page,
|
||||
];
|
||||
|
@ -215,9 +203,9 @@ export const getPages = () => {
|
|||
breadcrumbs: [
|
||||
[
|
||||
'/wc-pay-welcome-page',
|
||||
__( 'WooCommerce Payments', 'woocommerce-admin' ),
|
||||
__( 'WooCommerce Payments', 'woocommerce' ),
|
||||
],
|
||||
__( 'WooCommerce Payments', 'woocommerce-admin' ),
|
||||
__( 'WooCommerce Payments', 'woocommerce' ),
|
||||
],
|
||||
navArgs: {
|
||||
id: 'woocommerce-wc-pay-welcome-page',
|
||||
|
@ -240,7 +228,7 @@ export const getPages = () => {
|
|||
path: '*',
|
||||
breadcrumbs: [
|
||||
...initialBreadcrumbs,
|
||||
__( 'Not allowed', 'woocommerce-admin' ),
|
||||
__( 'Not allowed', 'woocommerce' ),
|
||||
],
|
||||
wpOpenMenu: 'toplevel_page_woocommerce',
|
||||
} );
|
||||
|
|
|
@ -53,7 +53,7 @@ const NavigationPlugin = () => {
|
|||
if ( page.path === '/analytics/settings' ) {
|
||||
return {
|
||||
...page,
|
||||
breadcrumbs: [ __( 'Analytics', 'woocommerce-admin' ) ],
|
||||
breadcrumbs: [ __( 'Analytics', 'woocommerce' ) ],
|
||||
};
|
||||
}
|
||||
return page;
|
||||
|
|
|
@ -85,7 +85,7 @@ export class StoreAlerts extends Component {
|
|||
const snoozeOptions = [
|
||||
{
|
||||
value: moment().add( 4, 'hours' ).unix().toString(),
|
||||
label: __( 'Later Today', 'woocommerce-admin' ),
|
||||
label: __( 'Later Today', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: moment()
|
||||
|
@ -96,7 +96,7 @@ export class StoreAlerts extends Component {
|
|||
.millisecond( 0 )
|
||||
.unix()
|
||||
.toString(),
|
||||
label: __( 'Tomorrow', 'woocommerce-admin' ),
|
||||
label: __( 'Tomorrow', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: moment()
|
||||
|
@ -107,7 +107,7 @@ export class StoreAlerts extends Component {
|
|||
.millisecond( 0 )
|
||||
.unix()
|
||||
.toString(),
|
||||
label: __( 'Next Week', 'woocommerce-admin' ),
|
||||
label: __( 'Next Week', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
value: moment()
|
||||
|
@ -118,7 +118,7 @@ export class StoreAlerts extends Component {
|
|||
.millisecond( 0 )
|
||||
.unix()
|
||||
.toString(),
|
||||
label: __( 'Next Month', 'woocommerce-admin' ),
|
||||
label: __( 'Next Month', 'woocommerce' ),
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -142,7 +142,7 @@ export class StoreAlerts extends Component {
|
|||
className="woocommerce-store-alerts__snooze"
|
||||
options={ [
|
||||
{
|
||||
label: __( 'Remind Me Later', 'woocommerce-admin' ),
|
||||
label: __( 'Remind Me Later', 'woocommerce' ),
|
||||
value: '0',
|
||||
},
|
||||
...snoozeOptions,
|
||||
|
@ -221,10 +221,7 @@ export class StoreAlerts extends Component {
|
|||
<Button
|
||||
onClick={ this.previousAlert }
|
||||
disabled={ currentIndex === 0 }
|
||||
label={ __(
|
||||
'Previous Alert',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Previous Alert', 'woocommerce' ) }
|
||||
>
|
||||
<Icon
|
||||
icon={ chevronLeft }
|
||||
|
@ -239,7 +236,7 @@ export class StoreAlerts extends Component {
|
|||
{ interpolateComponents( {
|
||||
mixedString: __(
|
||||
'{{current /}} of {{total /}}',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
components: {
|
||||
current: (
|
||||
|
@ -258,10 +255,7 @@ export class StoreAlerts extends Component {
|
|||
<Button
|
||||
onClick={ this.nextAlert }
|
||||
disabled={ numberOfAlerts - 1 === currentIndex }
|
||||
label={ __(
|
||||
'Next Alert',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
label={ __( 'Next Alert', 'woocommerce' ) }
|
||||
>
|
||||
<Icon
|
||||
icon={ chevronRight }
|
||||
|
|
|
@ -9,7 +9,7 @@ const ReadBlogMessage = () => {
|
|||
return interpolateComponents( {
|
||||
mixedString: __(
|
||||
'Read {{link}}the WooCommerce blog{{/link}} for more tips on marketing your store',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
components: {
|
||||
link: (
|
||||
|
|
|
@ -89,7 +89,7 @@ const KnowledgeBase = ( {
|
|||
<div className="woocommerce-marketing-knowledgebase-card__post-text">
|
||||
<h3>{ post.title }</h3>
|
||||
<p className="woocommerce-marketing-knowledgebase-card__post-meta">
|
||||
{ __( 'By', 'woocommerce-admin' ) + ' ' }
|
||||
{ __( 'By', 'woocommerce' ) + ' ' }
|
||||
{ post.author_name }
|
||||
{ post.author_avatar && (
|
||||
<img
|
||||
|
@ -113,7 +113,7 @@ const KnowledgeBase = ( {
|
|||
};
|
||||
|
||||
const renderEmpty = () => {
|
||||
const emptyTitle = __( 'No posts yet', 'woocommerce-admin' );
|
||||
const emptyTitle = __( 'No posts yet', 'woocommerce' );
|
||||
|
||||
return (
|
||||
<EmptyContent
|
||||
|
@ -128,7 +128,7 @@ const KnowledgeBase = ( {
|
|||
const renderError = () => {
|
||||
const errorTitle = __(
|
||||
"Oops, our posts aren't loading right now",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -228,10 +228,10 @@ KnowledgeBase.propTypes = {
|
|||
};
|
||||
|
||||
KnowledgeBase.defaultProps = {
|
||||
title: __( 'WooCommerce knowledge base', 'woocommerce-admin' ),
|
||||
title: __( 'WooCommerce knowledge base', 'woocommerce' ),
|
||||
description: __(
|
||||
'Learn the ins and outs of successful marketing from the experts at WooCommerce.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
};
|
||||
|
||||
|
|
|
@ -96,10 +96,10 @@ RecommendedExtensions.propTypes = {
|
|||
};
|
||||
|
||||
RecommendedExtensions.defaultProps = {
|
||||
title: __( 'Recommended extensions', 'woocommerce-admin' ),
|
||||
title: __( 'Recommended extensions', 'woocommerce' ),
|
||||
description: __(
|
||||
'Great marketing requires the right tools. Take your marketing to the next level with our recommended marketing extensions.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
};
|
||||
|
||||
|
|
|
@ -26,11 +26,11 @@ const CouponsOverview = () => {
|
|||
<RecommendedExtensions
|
||||
title={ __(
|
||||
'Recommended coupon extensions',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
description={ __(
|
||||
'Take your coupon marketing to the next level with our recommended coupon extensions.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
category="coupons"
|
||||
/>
|
||||
|
@ -39,7 +39,7 @@ const CouponsOverview = () => {
|
|||
category="coupons"
|
||||
description={ __(
|
||||
'Learn the ins and outs of successful coupon marketing from the experts at WooCommerce.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -80,7 +80,7 @@ export function* activateInstalledPlugin( pluginSlug ) {
|
|||
'success',
|
||||
__(
|
||||
'The extension has been successfully activated.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
// Deliberately load the new plugin data in a new request.
|
||||
|
@ -93,7 +93,7 @@ export function* activateInstalledPlugin( pluginSlug ) {
|
|||
error,
|
||||
__(
|
||||
'There was an error trying to activate the extension.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
yield removeActivatingPlugin( pluginSlug );
|
||||
|
@ -119,7 +119,7 @@ export function* loadInstalledPluginsAfterActivation( activatedPluginSlug ) {
|
|||
error,
|
||||
__(
|
||||
'There was an error loading installed extensions.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export function* getRecommendedPlugins( category ) {
|
|||
error,
|
||||
__(
|
||||
'There was an error loading recommended extensions.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -34,10 +34,7 @@ class InstalledExtensions extends Component {
|
|||
return null;
|
||||
}
|
||||
|
||||
const title = __(
|
||||
'Installed marketing extensions',
|
||||
'woocommerce-admin'
|
||||
);
|
||||
const title = __( 'Installed marketing extensions', 'woocommerce' );
|
||||
|
||||
return (
|
||||
<Card className="woocommerce-marketing-installed-extensions-card">
|
||||
|
|
|
@ -28,28 +28,28 @@ class InstalledExtensionRow extends Component {
|
|||
links.push( {
|
||||
key: 'docs',
|
||||
href: docsUrl,
|
||||
text: __( 'Docs', 'woocommerce-admin' ),
|
||||
text: __( 'Docs', 'woocommerce' ),
|
||||
} );
|
||||
}
|
||||
if ( supportUrl ) {
|
||||
links.push( {
|
||||
key: 'support',
|
||||
href: supportUrl,
|
||||
text: __( 'Get support', 'woocommerce-admin' ),
|
||||
text: __( 'Get support', 'woocommerce' ),
|
||||
} );
|
||||
}
|
||||
if ( settingsUrl ) {
|
||||
links.push( {
|
||||
key: 'settings',
|
||||
href: settingsUrl,
|
||||
text: __( 'Settings', 'woocommerce-admin' ),
|
||||
text: __( 'Settings', 'woocommerce' ),
|
||||
} );
|
||||
}
|
||||
if ( dashboardUrl ) {
|
||||
links.push( {
|
||||
key: 'dashboard',
|
||||
href: dashboardUrl,
|
||||
text: __( 'Dashboard', 'woocommerce-admin' ),
|
||||
text: __( 'Dashboard', 'woocommerce' ),
|
||||
} );
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ class InstalledExtensionRow extends Component {
|
|||
onClick={ this.onActivateClick }
|
||||
disabled={ isLoading }
|
||||
>
|
||||
{ __( 'Activate', 'woocommerce-admin' ) }
|
||||
{ __( 'Activate', 'woocommerce' ) }
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class InstalledExtensionRow extends Component {
|
|||
href={ this.props.settingsUrl }
|
||||
onClick={ this.onFinishSetupClick }
|
||||
>
|
||||
{ __( 'Finish setup', 'woocommerce-admin' ) }
|
||||
{ __( 'Finish setup', 'woocommerce' ) }
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ const WelcomeCard = ( { isHidden, updateOptions } ) => {
|
|||
<Card className="woocommerce-marketing-overview-welcome-card">
|
||||
<CardBody>
|
||||
<Button
|
||||
label={ __( 'Hide', 'woocommerce-admin' ) }
|
||||
label={ __( 'Hide', 'woocommerce' ) }
|
||||
onClick={ hide }
|
||||
className="woocommerce-marketing-overview-welcome-card__hide-button"
|
||||
>
|
||||
|
@ -42,7 +42,7 @@ const WelcomeCard = ( { isHidden, updateOptions } ) => {
|
|||
<h3>
|
||||
{ __(
|
||||
'Grow your customer base and increase your sales with marketing tools built for WooCommerce',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</h3>
|
||||
</CardBody>
|
||||
|
|
|
@ -60,16 +60,10 @@ export const Banner = ( { onInstall, onDismiss } ) => {
|
|||
<AppIcon />
|
||||
<div className="woocommerce-mobile-app-banner__description">
|
||||
<p className="woocommerce-mobile-app-banner__description__text">
|
||||
{ __(
|
||||
'Run your store from anywhere',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
{ __( 'Run your store from anywhere', 'woocommerce' ) }
|
||||
</p>
|
||||
<p className="woocommerce-mobile-app-banner__description__text">
|
||||
{ __(
|
||||
'Download the WooCommerce app',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
{ __( 'Download the WooCommerce app', 'woocommerce' ) }
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
@ -84,7 +78,7 @@ export const Banner = ( { onInstall, onDismiss } ) => {
|
|||
} );
|
||||
} }
|
||||
>
|
||||
{ __( 'Install', 'woocommerce-admin' ) }
|
||||
{ __( 'Install', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -29,7 +29,7 @@ export const PrimaryMenu = ( {
|
|||
*/
|
||||
const rootBackLabel = applyFilters(
|
||||
'woocommerce_navigation_root_back_label',
|
||||
__( 'WordPress Dashboard', 'woocommerce-admin' )
|
||||
__( 'WordPress Dashboard', 'woocommerce' )
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -75,7 +75,7 @@ export const PrimaryMenu = ( {
|
|||
<NavigationGroup
|
||||
title={
|
||||
category.id === 'woocommerce'
|
||||
? __( 'Extensions', 'woocommerce-admin' )
|
||||
? __( 'Extensions', 'woocommerce' )
|
||||
: null
|
||||
}
|
||||
>
|
||||
|
|
|
@ -50,13 +50,10 @@ export const FavoriteButton = ( { id } ) => {
|
|||
onClick={ toggleFavorite }
|
||||
aria-label={
|
||||
isFavorited
|
||||
? __(
|
||||
'Add this item to your favorites.',
|
||||
'woocommerce-admin'
|
||||
)
|
||||
? __( 'Add this item to your favorites.', 'woocommerce' )
|
||||
: __(
|
||||
'Remove this item from your favorites.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
}
|
||||
>
|
||||
|
|
|
@ -43,12 +43,12 @@ export const FavoritesTooltip = () => {
|
|||
return (
|
||||
<HighlightTooltip
|
||||
delay={ 1000 }
|
||||
title={ __( 'Introducing favorites', 'woocommerce-admin' ) }
|
||||
title={ __( 'Introducing favorites', 'woocommerce' ) }
|
||||
content={ __(
|
||||
'You can now favorite your extensions to pin them in the top level of the navigation.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
closeButtonText={ __( 'Got it', 'woocommerce-admin' ) }
|
||||
closeButtonText={ __( 'Got it', 'woocommerce' ) }
|
||||
id="woocommerce-navigation-favorite-button"
|
||||
onClose={ () =>
|
||||
updateOptions( {
|
||||
|
|
|
@ -107,32 +107,29 @@ export const IntroModal = () => {
|
|||
onFinish={ dismissModal }
|
||||
pages={ [
|
||||
getPage(
|
||||
__(
|
||||
'A new navigation for WooCommerce',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
__( 'A new navigation for WooCommerce', 'woocommerce' ),
|
||||
__(
|
||||
'All of your store management features in one place',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
NavInto1
|
||||
),
|
||||
getPage(
|
||||
__( 'Focus on managing your store', 'woocommerce-admin' ),
|
||||
__( 'Focus on managing your store', 'woocommerce' ),
|
||||
__(
|
||||
'Give your attention to key areas of WooCommerce with little distraction',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
NavInto2
|
||||
),
|
||||
getPage(
|
||||
__(
|
||||
'Easily find and favorite your extensions',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
__(
|
||||
"They'll appear in the top level of the navigation for quick access",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
NavInto3
|
||||
),
|
||||
|
|
|
@ -6,42 +6,36 @@ import { __ } from '@wordpress/i18n';
|
|||
import { createInterpolateElement } from '@wordpress/element';
|
||||
|
||||
export default {
|
||||
button: __( 'Install', 'woocommerce-admin' ),
|
||||
nothanks: __( 'No thanks', 'woocommerce-admin' ),
|
||||
limitedTimeOffer: __( 'Limited time offer', 'woocommerce-admin' ),
|
||||
heading: __( 'WooCommerce Payments', 'woocommerce-admin' ),
|
||||
bannerHeading: __(
|
||||
'Save big with WooCommerce Payments',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
button: __( 'Install', 'woocommerce' ),
|
||||
nothanks: __( 'No thanks', 'woocommerce' ),
|
||||
limitedTimeOffer: __( 'Limited time offer', 'woocommerce' ),
|
||||
heading: __( 'WooCommerce Payments', 'woocommerce' ),
|
||||
bannerHeading: __( 'Save big with WooCommerce Payments', 'woocommerce' ),
|
||||
bannerCopy: __(
|
||||
'No card transaction fees for up to 3 months (or $25,000 in payments)',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
discountCopy: __(
|
||||
'Discount will be applied upon install and completed setup of WooCommerce Payments',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
learnMore: __( 'Learn more', 'woocommerce-admin' ),
|
||||
learnMore: __( 'Learn more', 'woocommerce' ),
|
||||
|
||||
onboarding: {
|
||||
description: __(
|
||||
"Save up to $800 in fees by managing transactions with WooCommerce Payments. With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies. Track cash flow and manage recurring revenue directly from your store's dashboard - with no setup costs or monthly fees.",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
},
|
||||
|
||||
paymentMethodsHeading: __(
|
||||
'Accepted payment methods',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
surveyTitle: __( 'Remove WooCommerce Payments', 'woocommerce-admin' ),
|
||||
paymentMethodsHeading: __( 'Accepted payment methods', 'woocommerce' ),
|
||||
surveyTitle: __( 'Remove WooCommerce Payments', 'woocommerce' ),
|
||||
|
||||
surveyIntro: createInterpolateElement(
|
||||
// Note: \xa0 is used to create a non-breaking space.
|
||||
__(
|
||||
'Please take a moment to tell us why you’d like to remove WooCommerce Payments. This will remove WooCommerce\xa0Payments from the navigation. You can enable it again in <strong>WooCommerce\xa0Settings\xa0>\xa0Payments</strong>, however the promotion will not apply.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
strong: <strong />,
|
||||
|
@ -50,47 +44,44 @@ export default {
|
|||
|
||||
surveyQuestion: __(
|
||||
'What made you disable the new payments experience?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveyHappyLabel: __(
|
||||
'I’m already happy with my payments setup',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveyInstallLabel: __(
|
||||
'I don’t want to install another plugin',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveyMoreInfoLabel: __(
|
||||
'I need more information about WooCommerce Payments',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveyAnotherTimeLabel: __(
|
||||
'I’m open to installing it another time',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveySomethingElseLabel: __(
|
||||
'It’s something else (Please share below)',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
surveyCommentsLabel: __( 'Comments (Optional)', 'woocommerce-admin' ),
|
||||
surveyCommentsLabel: __( 'Comments (Optional)', 'woocommerce' ),
|
||||
|
||||
surveyCancelButton: __(
|
||||
'Just remove WooCommerce Payments',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
surveyCancelButton: __( 'Just remove WooCommerce Payments', 'woocommerce' ),
|
||||
|
||||
surveySubmitButton: __( 'Remove and send feedback', 'woocommerce-admin' ),
|
||||
surveySubmitButton: __( 'Remove and send feedback', 'woocommerce' ),
|
||||
|
||||
terms: createInterpolateElement(
|
||||
__(
|
||||
'By clicking "Install", you agree to the <a>Terms of Service</a>',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -105,83 +96,83 @@ export default {
|
|||
),
|
||||
|
||||
faq: {
|
||||
faqHeader: __( 'Frequently asked questions', 'woocommerce-admin' ),
|
||||
faqHeader: __( 'Frequently asked questions', 'woocommerce' ),
|
||||
|
||||
question1: __( 'What is WooCommerce Payments?', 'woocommerce-admin' ),
|
||||
question1: __( 'What is WooCommerce Payments?', 'woocommerce' ),
|
||||
|
||||
question1Answer1: __(
|
||||
'WooCommerce Payments is an integrated payment solution, built by WooCommerce, for WooCommerce. Use WooCommerce Payments to manage your payments, track cash flow, and manage revenue from your dashboard.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question1Answer2: __(
|
||||
'You can securely accept credit and debit card payments, Apple Pay, bank transfers, recurring revenue, accelerated checkout, and more - in over 100+ currencies with WooCommerce Payments.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question2: __(
|
||||
'Can I use WooCommerce Payments alongside other payment gateways?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question2Answer1: __(
|
||||
'Yes. WooCommerce Payments works alongside other payment service providers, including Stripe, PayPal, and all others. We’ve built it with this flexibility in mind so that you can ensure your store is working to meet your business needs.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question3: __(
|
||||
'Why should I choose WCPay over other payment gateways?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question3Answer1: __(
|
||||
"Native dashboard: track cash flow from the same WordPress dashboard you're already using to manage product catalogue, inventory, orders, fulfilment, and otherwise run your online storefront.",
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question3Answer2: __(
|
||||
'In-person payments: the only payment method that helps you sell online and offline with the official WooCommerce mobile app instead of a paid POS solution.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question3Answer3: __(
|
||||
'Subscription functionality: offer customers a recurring option for your inventory without purchasing an additional extension.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question3Answer4: __(
|
||||
'Native multi-currency: increase sales by making it easier for customers outside your country to purchase from your store, without an extension.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question4: __(
|
||||
'How will I save money using WooCommerce Payments?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
// eslint-disable-next-line @wordpress/i18n-translator-comments
|
||||
question4Answer1: __(
|
||||
'Stores accepted into the promotional program will receive a 100% discount on transaction fees (excluding currency conversion fees) for the first $25,000 in payments, or 3 months, whichever comes first. Simply install the extension and if eligible you’ll be entered into the promotional offer.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question4Answer2: __(
|
||||
'To be eligible for this promotional offer, your store must: (1) meet the WooCommerce Payments usage requirements; (2) be a U.S.-based business; (3) not have processed payments through WooCommerce Payments before; and (4) be accepted into the promotional program.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question5: __(
|
||||
'What are the fees for WooCommerce Payments?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question5Answer1: __(
|
||||
'WooCommerce Payments uses a pay-as-you-go pricing model. You pay only for activity on the account. No setup fee or monthly fee. Fees differ based on the country of your account and country of your customer’s card.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question5Answer2: createInterpolateElement(
|
||||
__( '<a>View all fees</a>', 'woocommerce-admin' ),
|
||||
__( '<a>View all fees</a>', 'woocommerce' ),
|
||||
{
|
||||
a: (
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
|
@ -198,7 +189,7 @@ export default {
|
|||
// eslint-disable-next-line @wordpress/i18n-translator-comments
|
||||
__(
|
||||
'1.5% fee on the payout amount for <a>instant deposits</a>',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -213,7 +204,7 @@ export default {
|
|||
),
|
||||
|
||||
question5Answer8: createInterpolateElement(
|
||||
__( '<a>View all fees</a>', 'woocommerce-admin' ),
|
||||
__( '<a>View all fees</a>', 'woocommerce' ),
|
||||
{
|
||||
a: (
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
|
@ -228,13 +219,13 @@ export default {
|
|||
|
||||
question6: __(
|
||||
'When will I receive deposits for my WooCommerce Payments account balance?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question6Answer1: createInterpolateElement(
|
||||
__(
|
||||
'For most accounts, <a>WooCommerce Payments</a> automatically pays out your available account balance into your nominated account daily after a standard pending period.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -250,21 +241,21 @@ export default {
|
|||
|
||||
question6Answer2: __(
|
||||
'Payments received each day become part of the pending balance. That pending balance will become available after a pending period. On the day it becomes available, it will be automatically paid out to your bank account. The pending period is based on the country of the account.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question6Answer3: __(
|
||||
'For example, a business based in New Zealand has a pending period of 4 business days. Payments made to this account on Wednesday will be paid out on the next Tuesday.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question6Answer4: __(
|
||||
'Most banks will reflect the deposit in your account as soon as they receive the transfer from WooCommerce Payments. Some may take a few extra days to make the balance available to you.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question6Answer5: createInterpolateElement(
|
||||
__( '<a>All deposits details</a>', 'woocommerce-admin' ),
|
||||
__( '<a>All deposits details</a>', 'woocommerce' ),
|
||||
{
|
||||
a: (
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
|
@ -279,51 +270,48 @@ export default {
|
|||
|
||||
question7: __(
|
||||
'What products are not permitted on my store when accepting payments with WooCommerce Payments?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer1: __(
|
||||
'Due to restrictions from card networks, our payment service providers, and their financial service providers, some businesses and product types that are not allowed to transact using WooCommerce Payments, including but not limited to:',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer2: __(
|
||||
'Virtual currency, including video game or virtual world credits',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer3: __( 'Counterfeit goods', 'woocommerce-admin' ),
|
||||
question7Answer3: __( 'Counterfeit goods', 'woocommerce' ),
|
||||
|
||||
question7Answer4: __(
|
||||
'Adult content and services',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
question7Answer4: __( 'Adult content and services', 'woocommerce' ),
|
||||
|
||||
question7Answer5: __(
|
||||
'Drug paraphernalia (including e-cigarette, vapes and nutraceuticals)',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer6: __( 'Multi-level marketing', 'woocommerce-admin' ),
|
||||
question7Answer6: __( 'Multi-level marketing', 'woocommerce' ),
|
||||
|
||||
question7Answer7: __( 'Pseudo pharmaceuticals', 'woocommerce-admin' ),
|
||||
question7Answer7: __( 'Pseudo pharmaceuticals', 'woocommerce' ),
|
||||
|
||||
question7Answer8: __(
|
||||
'Social media activity, like Twitter followers, Facebook likes, YouTube views',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer9: __(
|
||||
'Substances designed to mimic illegal drugs',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer10: __( 'Firearms, ammunition', 'woocommerce-admin' ),
|
||||
question7Answer10: __( 'Firearms, ammunition', 'woocommerce' ),
|
||||
|
||||
question7Answer11: createInterpolateElement(
|
||||
__(
|
||||
'The full list of these businesses can be found in <a>Stripe’s Restricted Businesses list</a>.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -339,23 +327,23 @@ export default {
|
|||
|
||||
question7Answer12: __(
|
||||
'By signing up to use WooCommerce Payments, you agree not to accept payments in connection with these restricted activities, practices or products. We also work to ensure that no prohibited activity is conducted on WooCommerce Payments.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question7Answer13: __(
|
||||
'If we become aware of prohibited activity, we may restrict or shutdown the account responsible.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question8: __(
|
||||
'Can WooCommerce Payments support Subscriptions and recurring payment options?',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question8Answer1: createInterpolateElement(
|
||||
__(
|
||||
'WooCommerce Payments supports charging automatic recurring payments via the <a>WooCommerce Subscriptions</a> plugin.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -371,36 +359,30 @@ export default {
|
|||
|
||||
question8Answer2: __(
|
||||
'WooCommerce Payments offers full compatibility with WooCommerce Subscriptions’ features, including:',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question8Answer3: __( 'Subscription suspension', 'woocommerce-admin' ),
|
||||
question8Answer3: __( 'Subscription suspension', 'woocommerce' ),
|
||||
|
||||
question8Answer4: __(
|
||||
'Subscription cancellation',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
question8Answer4: __( 'Subscription cancellation', 'woocommerce' ),
|
||||
|
||||
question8Answer5: __(
|
||||
'Subscription reactivation',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
question8Answer5: __( 'Subscription reactivation', 'woocommerce' ),
|
||||
|
||||
question8Answer6: __( 'Multiple subscriptions', 'woocommerce-admin' ),
|
||||
question8Answer6: __( 'Multiple subscriptions', 'woocommerce' ),
|
||||
|
||||
question8Answer7: __( 'Recurring total changes', 'woocommerce-admin' ),
|
||||
question8Answer7: __( 'Recurring total changes', 'woocommerce' ),
|
||||
|
||||
question8Answer8: __( 'Payment date changes', 'woocommerce-admin' ),
|
||||
question8Answer8: __( 'Payment date changes', 'woocommerce' ),
|
||||
|
||||
question8Answer9: __(
|
||||
'Customer & Store Manager payment method changes',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
|
||||
question8Answer10: createInterpolateElement(
|
||||
__(
|
||||
'For more details on the subscription features that WooCommerce Payments offers, refer to the <a>subscription section of the WooCommerce Payments start up guide</a>.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
{
|
||||
a: (
|
||||
|
@ -414,8 +396,8 @@ export default {
|
|||
}
|
||||
),
|
||||
|
||||
haveMoreQuestions: __( 'Have more questions?', 'woocommerce-admin' ),
|
||||
haveMoreQuestions: __( 'Have more questions?', 'woocommerce' ),
|
||||
|
||||
getInTouch: __( 'Get in touch', 'woocommerce-admin' ),
|
||||
getInTouch: __( 'Get in touch', 'woocommerce' ),
|
||||
},
|
||||
};
|
||||
|
|
|
@ -134,7 +134,7 @@ const PaymentRecommendations: React.FC = () => {
|
|||
'error',
|
||||
__(
|
||||
'There was a problem hiding the "Additional ways to get paid" card.',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -174,9 +174,7 @@ const PaymentRecommendations: React.FC = () => {
|
|||
<>
|
||||
{ plugin.title }
|
||||
{ plugin.recommended && (
|
||||
<Pill>
|
||||
{ __( 'Recommended', 'woocommerce-admin' ) }
|
||||
</Pill>
|
||||
<Pill>{ __( 'Recommended', 'woocommerce' ) }</Pill>
|
||||
) }
|
||||
</>
|
||||
),
|
||||
|
@ -189,7 +187,7 @@ const PaymentRecommendations: React.FC = () => {
|
|||
disabled={ !! installingPlugin }
|
||||
>
|
||||
{ plugin.actionText ||
|
||||
__( 'Get started', 'woocommerce-admin' ) }
|
||||
__( 'Get started', 'woocommerce' ) }
|
||||
</Button>
|
||||
),
|
||||
before: (
|
||||
|
@ -208,10 +206,7 @@ const PaymentRecommendations: React.FC = () => {
|
|||
size="20"
|
||||
lineHeight="28px"
|
||||
>
|
||||
{ __(
|
||||
'Additional ways to get paid',
|
||||
'woocommerce-admin'
|
||||
) }
|
||||
{ __( 'Additional ways to get paid', 'woocommerce' ) }
|
||||
</Text>
|
||||
<Text
|
||||
className={
|
||||
|
@ -224,19 +219,19 @@ const PaymentRecommendations: React.FC = () => {
|
|||
>
|
||||
{ __(
|
||||
'We recommend adding one of the following payment extensions to your store. The extension will be installed and activated for you when you click "Get started".',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
) }
|
||||
</Text>
|
||||
</div>
|
||||
<div className="woocommerce-card__menu woocommerce-card__header-item">
|
||||
<EllipsisMenu
|
||||
label={ __( 'Task List Options', 'woocommerce-admin' ) }
|
||||
label={ __( 'Task List Options', 'woocommerce' ) }
|
||||
renderContent={ () => (
|
||||
<div className="woocommerce-review-activity-card__section-controls">
|
||||
<Button
|
||||
onClick={ dismissPaymentRecommendations }
|
||||
>
|
||||
{ __( 'Hide this', 'woocommerce-admin' ) }
|
||||
{ __( 'Hide this', 'woocommerce' ) }
|
||||
</Button>
|
||||
</div>
|
||||
) }
|
||||
|
@ -246,7 +241,7 @@ const PaymentRecommendations: React.FC = () => {
|
|||
<List items={ pluginsList } />
|
||||
<CardFooter>
|
||||
<Button href={ SEE_MORE_LINK } target="_blank" isTertiary>
|
||||
{ __( 'See more options', 'woocommerce-admin' ) }
|
||||
{ __( 'See more options', 'woocommerce' ) }
|
||||
<ExternalIcon size={ 18 } />
|
||||
</Button>
|
||||
</CardFooter>
|
||||
|
|
|
@ -65,7 +65,7 @@ class ProfileWizard extends Component {
|
|||
'error',
|
||||
__(
|
||||
'There was a problem finishing the setup wizard',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ class ProfileWizard extends Component {
|
|||
steps.push( {
|
||||
key: 'store-details',
|
||||
container: StoreDetails,
|
||||
label: __( 'Store Details', 'woocommerce-admin' ),
|
||||
label: __( 'Store Details', 'woocommerce' ),
|
||||
isComplete:
|
||||
profileItems.hasOwnProperty( 'setup_client' ) &&
|
||||
profileItems.setup_client !== null,
|
||||
|
@ -143,7 +143,7 @@ class ProfileWizard extends Component {
|
|||
steps.push( {
|
||||
key: 'industry',
|
||||
container: Industry,
|
||||
label: __( 'Industry', 'woocommerce-admin' ),
|
||||
label: __( 'Industry', 'woocommerce' ),
|
||||
isComplete:
|
||||
profileItems.hasOwnProperty( 'industry' ) &&
|
||||
profileItems.industry !== null,
|
||||
|
@ -151,7 +151,7 @@ class ProfileWizard extends Component {
|
|||
steps.push( {
|
||||
key: 'product-types',
|
||||
container: ProductTypes,
|
||||
label: __( 'Product Types', 'woocommerce-admin' ),
|
||||
label: __( 'Product Types', 'woocommerce' ),
|
||||
isComplete:
|
||||
profileItems.hasOwnProperty( 'product_types' ) &&
|
||||
profileItems.product_types !== null,
|
||||
|
@ -159,7 +159,7 @@ class ProfileWizard extends Component {
|
|||
steps.push( {
|
||||
key: 'business-details',
|
||||
container: BusinessDetailsStep,
|
||||
label: __( 'Business Details', 'woocommerce-admin' ),
|
||||
label: __( 'Business Details', 'woocommerce' ),
|
||||
isComplete:
|
||||
profileItems.hasOwnProperty( 'product_count' ) &&
|
||||
profileItems.product_count !== null,
|
||||
|
@ -167,7 +167,7 @@ class ProfileWizard extends Component {
|
|||
steps.push( {
|
||||
key: 'theme',
|
||||
container: Theme,
|
||||
label: __( 'Theme', 'woocommerce-admin' ),
|
||||
label: __( 'Theme', 'woocommerce' ),
|
||||
isComplete:
|
||||
profileItems.hasOwnProperty( 'theme' ) &&
|
||||
profileItems.theme !== null,
|
||||
|
@ -274,7 +274,7 @@ class ProfileWizard extends Component {
|
|||
'error',
|
||||
__(
|
||||
'There was a problem skipping the setup wizard',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
)
|
||||
);
|
||||
} );
|
||||
|
|
|
@ -6,11 +6,11 @@ import { __ } from '@wordpress/i18n';
|
|||
export const employeeOptions = [
|
||||
{
|
||||
key: '1',
|
||||
label: __( "It's just me", 'woocommerce-admin' ),
|
||||
label: __( "It's just me", 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: '<10',
|
||||
label: __( '< 10', 'woocommerce-admin' ),
|
||||
label: __( '< 10', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: '10-50',
|
||||
|
@ -22,10 +22,10 @@ export const employeeOptions = [
|
|||
},
|
||||
{
|
||||
key: '+250',
|
||||
label: __( '+250', 'woocommerce-admin' ),
|
||||
label: __( '+250', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'not specified',
|
||||
label: __( "I'd rather not say", 'woocommerce-admin' ),
|
||||
label: __( "I'd rather not say", 'woocommerce' ),
|
||||
},
|
||||
];
|
||||
|
|
|
@ -6,38 +6,38 @@ import { __ } from '@wordpress/i18n';
|
|||
export const platformOptions = [
|
||||
{
|
||||
key: 'shopify',
|
||||
label: __( 'Shopify', 'woocommerce-admin' ),
|
||||
label: __( 'Shopify', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'bigcommerce',
|
||||
label: __( 'BigCommerce', 'woocommerce-admin' ),
|
||||
label: __( 'BigCommerce', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'magento',
|
||||
label: __( 'Magento', 'woocommerce-admin' ),
|
||||
label: __( 'Magento', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'wix',
|
||||
label: __( 'Wix', 'woocommerce-admin' ),
|
||||
label: __( 'Wix', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'amazon',
|
||||
label: __( 'Amazon', 'woocommerce-admin' ),
|
||||
label: __( 'Amazon', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'ebay',
|
||||
label: __( 'eBay', 'woocommerce-admin' ),
|
||||
label: __( 'eBay', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'etsy',
|
||||
label: __( 'Etsy', 'woocommerce-admin' ),
|
||||
label: __( 'Etsy', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'squarespace',
|
||||
label: __( 'Squarespace', 'woocommerce-admin' ),
|
||||
label: __( 'Squarespace', 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: 'other',
|
||||
label: __( 'Other', 'woocommerce-admin' ),
|
||||
label: __( 'Other', 'woocommerce' ),
|
||||
},
|
||||
];
|
||||
|
|
|
@ -16,7 +16,7 @@ export const getNumberRangeString = (
|
|||
) => {
|
||||
if ( ! max ) {
|
||||
return sprintf(
|
||||
_x( '%s+', 'store product count or revenue', 'woocommerce-admin' ),
|
||||
_x( '%s+', 'store product count or revenue', 'woocommerce' ),
|
||||
formatAmount( numberConfig, min )
|
||||
);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export const getNumberRangeString = (
|
|||
_x(
|
||||
'%1$s - %2$s',
|
||||
'store product count or revenue range',
|
||||
'woocommerce-admin'
|
||||
'woocommerce'
|
||||
),
|
||||
formatAmount( numberConfig, min ),
|
||||
formatAmount( numberConfig, max )
|
||||
|
@ -35,7 +35,7 @@ export const getNumberRangeString = (
|
|||
export const getProductCountOptions = ( numberConfig ) => [
|
||||
{
|
||||
key: '0',
|
||||
label: __( "I don't have any products yet.", 'woocommerce-admin' ),
|
||||
label: __( "I don't have any products yet.", 'woocommerce' ),
|
||||
},
|
||||
{
|
||||
key: '1-10',
|
||||
|
|
|
@ -46,7 +46,7 @@ export const getRevenueOptions = ( numberConfig, country, formatAmount ) => [
|
|||
key: 'none',
|
||||
label: sprintf(
|
||||
/* translators: %s: $0 revenue amount */
|
||||
__( "%s (I'm just getting started)", 'woocommerce-admin' ),
|
||||
__( "%s (I'm just getting started)", 'woocommerce' ),
|
||||
formatAmount( 0 )
|
||||
),
|
||||
},
|
||||
|
@ -54,7 +54,7 @@ export const getRevenueOptions = ( numberConfig, country, formatAmount ) => [
|
|||
key: 'up-to-2500',
|
||||
label: sprintf(
|
||||
/* translators: %s: A given revenue amount, e.g., $2500 */
|
||||
__( 'Up to %s', 'woocommerce-admin' ),
|
||||
__( 'Up to %s', 'woocommerce' ),
|
||||
formatAmount( convertCurrency( 2500, country ) )
|
||||
),
|
||||
},
|
||||
|
@ -89,12 +89,12 @@ export const getRevenueOptions = ( numberConfig, country, formatAmount ) => [
|
|||
key: 'more-than-250000',
|
||||
label: sprintf(
|
||||
/* translators: %s: A given revenue amount, e.g., $250000 */
|
||||
__( 'More than %s', 'woocommerce-admin' ),
|
||||
__( 'More than %s', 'woocommerce' ),
|
||||
formatAmount( convertCurrency( 250000, country ) )
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'rather-not-say',
|
||||
label: __( "I'd rather not say", 'woocommerce-admin' ),
|
||||
label: __( "I'd rather not say", 'woocommerce' ),
|
||||
},
|
||||
];
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue