* Fix bad text domains

* fix currency bug
This commit is contained in:
Paul Sealock 2020-08-14 08:25:08 +12:00 committed by GitHub
parent 1d482e6357
commit c3d1e1eb61
4 changed files with 5 additions and 8 deletions

View File

@ -5,7 +5,6 @@ module.exports = {
'@wordpress/i18n-translator-comments': 'warn', '@wordpress/i18n-translator-comments': 'warn',
'@wordpress/valid-sprintf': 'warn', '@wordpress/valid-sprintf': 'warn',
'react-hooks/rules-of-hooks': 'warn', 'react-hooks/rules-of-hooks': 'warn',
'@wordpress/i18n-text-domain': 'warn',
'jsdoc/check-param-names': 'warn', 'jsdoc/check-param-names': 'warn',
'jsdoc/require-param': 'warn', 'jsdoc/require-param': 'warn',
'jsdoc/require-property': 'warn', 'jsdoc/require-property': 'warn',

View File

@ -155,19 +155,19 @@ class StockReportTable extends Component {
value: formatValue( currency, 'number', products ), value: formatValue( currency, 'number', products ),
}, },
{ {
label: __( 'out of stock', outofstock, 'woocommerce-admin' ), label: __( 'out of stock', 'woocommerce-admin' ),
value: formatValue( currency, 'number', outofstock ), value: formatValue( currency, 'number', outofstock ),
}, },
{ {
label: __( 'low stock', lowstock, 'woocommerce-admin' ), label: __( 'low stock', 'woocommerce-admin' ),
value: formatValue( 'currency, number', lowstock ), value: formatValue( currency, 'number', lowstock ),
}, },
{ {
label: __( 'on backorder', onbackorder, 'woocommerce-admin' ), label: __( 'on backorder', 'woocommerce-admin' ),
value: formatValue( currency, 'number', onbackorder ), value: formatValue( currency, 'number', onbackorder ),
}, },
{ {
label: __( 'in stock', instock, 'woocommerce-admin' ), label: __( 'in stock', 'woocommerce-admin' ),
value: formatValue( currency, 'number', instock ), value: formatValue( currency, 'number', instock ),
}, },
]; ];

View File

@ -4,7 +4,6 @@
import { compose } from '@wordpress/compose'; import { compose } from '@wordpress/compose';
import { withSelect } from '@wordpress/data'; import { withSelect } from '@wordpress/data';
import { identity } from 'lodash'; import { identity } from 'lodash';
import { getSetting } from '@woocommerce/wc-admin-settings'; import { getSetting } from '@woocommerce/wc-admin-settings';
import { import {
ONBOARDING_STORE_NAME, ONBOARDING_STORE_NAME,

View File

@ -12,7 +12,6 @@ import {
__experimentalText as Text, __experimentalText as Text,
} from '@wordpress/components'; } from '@wordpress/components';
import { get, xor } from 'lodash'; import { get, xor } from 'lodash';
import { import {
EllipsisMenu, EllipsisMenu,
MenuItem, MenuItem,