Skip to content

Update Javascript linting config to specify expected text domain #4578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 14, 2025
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ module.exports = {
'testing-library/no-unnecessary-act': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'woocommerce-gateway-stripe',
},
],
},
settings: {
react: {
Expand All @@ -82,4 +88,11 @@ module.exports = {
'@wordpress/data',
],
},
ignorePatterns: [
'build/**',
'node_modules/**',
'phpunit-html/**',
'release/**',
'vendor/**',
],
};
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Update - Increases the default font size for the Optimized Checkout payment element to match the rest of the checkout form
* Fix - Checks for the subscription payment method (if it is Stripe) when verifying for the payment method detachment
* Dev - Implements WooCommerce constants for the tax statuses
* Fix - Ensure all Javascript strings use the correct text domain for translation

= 9.8.0 - 2025-08-11 =
* Add - Adds the current setting value for the Optimized Checkout to the Stripe System Status Report data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ const PaymentMethodCheckbox = ( {
{ sprintf(
/* translators: %s: a payment method name. */
__(
'%s cannot be enabled at checkout. Click to expand.'
'%s cannot be enabled at checkout. Click to expand.',
'woocommerce-gateway-stripe'
),
label
) }
Expand Down
2 changes: 1 addition & 1 deletion client/settings/stripe-account-connected-notice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const StripeAccountConnectedNotice = () => {
if ( shouldShowNotice() ) {
localStorage.removeItem( LOCAL_STORAGE_KEY );
dispatch( 'core/notices' ).createSuccessNotice(
__( 'Stripe Account Connected', 'woocommerce' ),
__( 'Stripe Account Connected', 'woocommerce-gateway-stripe' ),
{
id: 'WOOCOMMERCE_STRIPE_ACCOUNT_CONNECTED_NOTICE',
actions: [
Expand Down
3 changes: 2 additions & 1 deletion client/stripe-utils/cash-app-limit-notice-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const LIMIT_NOTICE_CLASSNAME = 'wc-block-checkout__payment-method-limit-notice';
export const cashAppLimitNotice = document.createElement( 'div' );
cashAppLimitNotice.classList.add( 'woocommerce-info', LIMIT_NOTICE_CLASSNAME );
cashAppLimitNotice.textContent = __(
'Please note that, depending on your account and transaction history, Cash App Pay may reject your transaction due to its amount.'
'Please note that, depending on your account and transaction history, Cash App Pay may reject your transaction due to its amount.',
'woocommerce-gateway-stripe'
);
cashAppLimitNotice.setAttribute( 'data-testid', 'cash-app-limit-notice' );

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
* Update - Increases the default font size for the Optimized Checkout payment element to match the rest of the checkout form
* Fix - Checks for the subscription payment method (if it is Stripe) when verifying for the payment method detachment
* Dev - Implements WooCommerce constants for the tax statuses
* Fix - Ensure all Javascript strings use the correct text domain for translation

[See changelog for full details across versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
Loading