Manually change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA JS packages .md files

This commit is contained in:
RJChow 2022-03-31 20:42:24 +08:00
parent 12a818c04d
commit 2c630ccd9e
3 changed files with 18 additions and 18 deletions

View File

@ -12,24 +12,24 @@ const config = {
// A sentence describing filters for Orders
// See screen shot for context: https://cloudup.com/cSsUY9VeCVJ
'Orders Match {{select /}} Filters',
'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'
),
// A sentence describing an Order Status filter
// See screen shot for context: https://cloudup.com/cSsUY9VeCVJ
title: __(
'Order Status {{rule /}} {{filter /}}',
'woocommerce-admin'
'woocommerce'
),
filter: __( 'Select an order status', 'woocommerce-admin' ),
filter: __( 'Select an order status', 'woocommerce' ),
},
rules: [
{
@ -37,14 +37,14 @@ const config = {
// 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',
// 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: {
@ -139,15 +139,15 @@ const config = {
rules: [
{
value: 'before',
label: __( 'Before', 'woocommerce-admin' ),
label: __( 'Before', 'woocommerce' ),
},
{
value: 'after',
label: __( 'After', 'woocommerce-admin' ),
label: __( 'After', 'woocommerce' ),
},
{
value: 'between',
label: __( 'Between', 'woocommerce-admin' ),
label: __( 'Between', 'woocommerce' ),
},
],
input: {
@ -172,15 +172,15 @@ const config = {
rules: [
{
value: 'lessthan',
label: __( 'Less Than', 'woocommerce-admin' ),
label: __( 'Less Than', 'woocommerce' ),
},
{
value: 'morethan',
label: __( 'More Than', 'woocommerce-admin' ),
label: __( 'More Than', 'woocommerce' ),
},
{
value: 'between',
label: __( 'Between', 'woocommerce-admin' ),
label: __( 'Between', 'woocommerce' ),
},
],
input: {

View File

@ -36,7 +36,7 @@ A container element for a list of SummaryNumbers. This component handles detecti
Name | Type | Default | Description
--- | --- | --- | ---
`children` | Function | `null` | (required) A function returning a list of `<SummaryNumber />`s
`label` | String | `__( 'Performance Indicators', 'woocommerce-admin' )` | An optional label of this group, read to screen reader users
`label` | String | `__( 'Performance Indicators', 'woocommerce' )` | An optional label of this group, read to screen reader users
SummaryNumber
@ -57,7 +57,7 @@ Name | Type | Default | Description
`isOpen` | Boolean | `false` | Boolean describing whether the menu list is open. Only applies in mobile view, and only applies to the toggle-able item (first in the list)
`label` | String | `null` | (required) A string description of this value, ex "Revenue", or "New Customers"
`onToggle` | Function | `null` | A function used to switch the given SummaryNumber to a button, and called on click
`prevLabel` | String | `__( 'Previous period:', 'woocommerce-admin' )` | A string description of the previous value's timeframe, ex "Previous year:"
`prevLabel` | String | `__( 'Previous period:', 'woocommerce' )` | A string description of the previous value's timeframe, ex "Previous year:"
`prevValue` | One of type: number, string | `null` | A string or number value to display - a string is allowed so we can accept currency formatting. If omitted, this section won't display
`reverseTrend` | Boolean | `false` | A boolean used to indicate that a negative delta is "good", and should be styled like a positive (and vice-versa)
`selected` | Boolean | `false` | A boolean used to show a highlight style on this number

View File

@ -115,8 +115,8 @@ if ( global.window ) {
}
setLocaleData(
{ '': { domain: 'woocommerce-admin', lang: 'en_US' } },
'woocommerce-admin'
{ '': { domain: 'woocommerce', lang: 'en_US' } },
'woocommerce'
);
// Mock core/notices store for components dispatching core notices