From 663454e331995f847f9e64a42b932694753cbca9 Mon Sep 17 00:00:00 2001 From: Yuliyan Slavchev Date: Tue, 23 Jul 2024 11:29:17 +0300 Subject: [PATCH] i18n: Ignore `.native.js` module from string extraction (#92890) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f0f90d97a4b139..11bcd6c3d9d060 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "test-server:watch": "yarn run test-server --watch", "tour-kit:storybook:start": "echo 'Deprecated, run `yarn workspace @automattic/tour-kit run storybook` instead'", "translate": "rm -rf build/strings && mkdirp public && yarn translate:dependencies && yarn translate:calypso", - "translate:dependencies": "rm -rf build/dependency-strings && mkdirp build/strings && wp-babel-makepot './node_modules/@wordpress/**/build-module/**/*.js' --base './' --dir './build/dependency-strings' --output './build/strings/calypso-dependencies.pot'", + "translate:dependencies": "rm -rf build/dependency-strings && mkdirp build/strings && wp-babel-makepot './node_modules/@wordpress/**/build-module/**/*.js' --ignore '**/*.native.js' --base './' --dir './build/dependency-strings' --output './build/strings/calypso-dependencies.pot'", "translate:calypso": "wp-babel-makepot './{client,packages,apps}/**/*.{js,jsx,ts,tsx}' --ignore '**/node_modules/**,**/test/**,**/*.d.ts' --base './' --dir './build/strings' --output './public/calypso-strings.pot'", "tsc": "NODE_OPTIONS='--max-old-space-size=4096' tsc", "typecheck": "yarn run tsc --project client",